Error bars or confidence interval on a density plot
140 views
Skip to first unread message
Ryan Hope
unread,
Jan 25, 2013, 3:22:02 PM1/25/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ggp...@googlegroups.com
I have a density plot over which I would like to render a confidence interval using horizontal error bars. Is this possible or do I need to use a shaded box?
Ben Bond-Lamberty
unread,
Jan 27, 2013, 7:47:02 AM1/27/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ggp...@googlegroups.com
Hmm, I guess I'd precompute -- use R's density() function first on the
data, add data for error bars, and then plot it all use geom_line and
geom_errorbar.
If you can provide a reproducible example, that will help people give
more specific advice.