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

Barplot & error bar #1

Open
devSJR opened this issue Mar 18, 2025 · 2 comments
Open

Barplot & error bar #1

devSJR opened this issue Mar 18, 2025 · 2 comments

Comments

@devSJR
Copy link

devSJR commented Mar 18, 2025

The latest version of tinyplot integrated barplots. Is there a plan to add an option for error bars?

With a little more effort, this could work manually.

mod = lm(mpg ~ wt * factor(am), mtcars)
coefs = data.frame(names(coef(mod)), coef(mod), confint(mod))
colnames(coefs) = c("term", "est", "lwr", "upr")

op = tpar(pch = 19)

with(
coefs,
{
tinyplot(est ~ term, ymin = lwr, ymax = upr, type = "errorbar")
tinyplot(est ~ term, type = "barplot", beside = TRUE, add = TRUE)
}
)

If not, no problem. There are many reasons not to do this.

@gaborcsardi
Copy link

Hi, this is a read only mirror of CRAN, please see the package authors in the DESCRIPTION file. Look for Maintainer, BugReports and URL. Thanks!

@devSJR
Copy link
Author

devSJR commented Mar 18, 2025

My bad. Didn't pay attention. Sorry.

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

2 participants