Install developer version v0.1.3 from github
install.packages("devtools") # Only if you don't have it already
devtools::install_github('ndphillips/yarrr', build_vignettes = TRUE)
library(yarrr)
## Loading required package: jpeg
## Loading required package: BayesFactor
## Loading required package: coda
## Loading required package: Matrix
## ************
## Welcome to BayesFactor 0.9.12-2. If you have questions, please contact Richard Morey (richarddmorey@gmail.com).
##
## Type BFManual() to open the manual.
## ************
## ************
## Welcome to yarrr v0.1.3!
## Run yarrr.guide() to see the main package guide
## Email me at yarrr.book@gmail.com with questions, comments, or movie recommendations
## ************
Now you can use the new inf.method = "sd" argument for standard deviation, or inf.method = "se" for standard error
yarrr::pirateplot(weight ~ Diet,
data = ChickWeight,
inf.method = "sd",
main = "PP with standard deviation as interval")
Here it is with standard error:
yarrr::pirateplot(weight ~ Diet,
data = ChickWeight,
inf.method = "se", # Standard Error
main = "PP with standard error as interval")
To change the number of standard deviations / standard errors in the range, use the inf.p argument:
yarrr::pirateplot(weight ~ Diet,
data = ChickWeight,
inf.method = "se", # Standard Error
inf.p = 2,
main = "PP with 2 standard errors as interval")