Define ggplot summary function to return mean +/- SD HORIZONTAL

mean_sd_h(x)

Arguments

x

Numeric vector

Value

Data frame with xmin, x, and xmax summaries

Examples

mean_sd_h(rnorm(100))
#> xmin x xmax #> 1 -0.9043894 0.1157244 1.135838