Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in mcmc_areas "Error in element_line(...)" when using example code #303

Open
rsmiller74 opened this issue May 16, 2023 · 0 comments
Open

Comments

@rsmiller74
Copy link

Error occurs with example code from https://mc-stan.org/bayesplot/.

fit <- stan_glm(mpg ~ ., data = mtcars)
posterior <- as.matrix(fit)

plot_title <- ggtitle("Posterior distributions",
"with medians and 80% intervals")
mcmc_areas(posterior,
pars = c("cyl", "drat", "am", "wt"),
prob = 0.8) + plot_title

Error in element_line(...) : unused argument (linewidth = 1)
In addition: Warning message:
Ignoring unknown parameters: linewidth

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant