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

Confidence Interval ggerrorplot Issue #94

Closed
abrar-alshaer opened this issue Jun 20, 2018 · 1 comment
Closed

Confidence Interval ggerrorplot Issue #94

abrar-alshaer opened this issue Jun 20, 2018 · 1 comment

Comments

@abrar-alshaer
Copy link

I am trying to customize the confidence interval in my plot. I know that I can use mean_ci but when I put ci=0.95 or ci=0.80 it makes no difference in the plot. How do I customize the confidence interval in ggerrorplot??

My code is below:

ggerrorplot(merge_sub_rmNA, x = "Quartiles", y = "LBXGLT", ylab = "Two Hour Glucose (mg/dl)", error.plot = "errorbar", desc_stat = c("mean", "mean_ci", ci=0.80), palette = "jco", title = "OGTT by DHA All Ages")+
  scale_x_discrete(name = '\nQuartiles of DHA Intake (grams)', 
                     breaks = c('1', '2', '3', '4'), 
                     labels = c('1\n0.003', '2\n0.011', '3\n0.056', '4\n4.08'))+
  stat_compare_means(method = "kruskal.test", label.y = 125, label.x = 1)+      # Add global p-value
  stat_compare_means(comparisons = my_comparisons, tip.length = c(0.001), label = "p.signif", hide.ns = TRUE, label.y = c(123)) 
@kassambara
Copy link
Owner

fixed now, try this:

ggerrorplot(ToothGrowth, x = "dose", y = "len",
            desc_stat = "mean_ci", ci = 0.80)

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