Learn R Programming

ggplot2 (version 3.5.0)

hmisc: A selection of summary functions from Hmisc

Description

These are wrappers around functions from Hmisc designed to make them easier to use with stat_summary(). See the Hmisc documentation for more details:

Usage

mean_cl_boot(x, ...)

mean_cl_normal(x, ...)

mean_sdl(x, ...)

median_hilow(x, ...)

Value

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

Arguments

x

a numeric vector

...

other arguments passed on to the respective Hmisc function.

Examples

Run this code
if (requireNamespace("Hmisc", quietly = TRUE)) {
set.seed(1)
x <- rnorm(100)
mean_cl_boot(x)
mean_cl_normal(x)
mean_sdl(x)
median_hilow(x)
}

Run the code above in your browser using DataLab