mean_se: Calculate mean and standard error

Description Usage Arguments Value Examples

View source: R/stat-summary.r

Description

For use with stat_summary

Usage

1
mean_se(x, mult = 1)

Arguments

x

numeric vector

mult

number of multiples of standard error

Value

A data frame with columns y, ymin, and ymax.

Examples

1
2
x <- rnorm(100)
mean_se(x)

Example output

          y        ymin      ymax
1 0.0346499 -0.06241769 0.1317175

ggplot2 documentation built on May 30, 2017, 2:36 a.m.