[R] Plotting confidence intervals
btupper @end|ng |rom b|ge|ow@org
Sun Dec 8 04:07:59 CET 2019
Would something like yarrr do the trick?
Or gghalves? https://github.com/erocoar/gghalves
On Sat, Dec 7, 2019 at 9:32 PM <phil using philipsmith.ca> wrote:
> I want to show little bell curves on my bar chart to illustrate the
> confidence ranges. The following example from Paul Teetor's "R Cookbook"
> does what I want, but shows I-beams instead of bell curves. The I-beams
> suggest uniform, rather than normal distributions. So I am looking for a
> way to plot normal distribution curves instead.
> # Example from Paul Teetor, "R Cookbook", page 238.
> heights <- tapply(Temp,Month,mean)
> lower <- tapply(Temp,Month,function(v) t.test(v)$conf.int)
> upper <- tapply(Temp,Month,function(v) t.test(v)$conf.int)
> main="Mean Temp. By Month",
> ylab="Temp (deg. F)")
> Does anyone know a package that does this or, alternatively, can anyone
> suggest a direction to go in if one were to write R code to do this?
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
Bigelow Laboratory for Ocean Science
West Boothbay Harbor, Maine
[[alternative HTML version deleted]]
More information about the R-help