Compute Winsorized Mean and its Standard Error for ggplot2
Source:R/ggplot2_summaries.R
win_mean_se.Rd
Compute 20% winsorized mean and standard error for a given vector. Can be used
as fun.data
in ggplot2's stat_summary
.
Examples
x <- rnorm(200)
win_mean_se(x)
#> y ymin ymax
#> 1 0.06097013 -0.01018372 0.132124