cont_hist_list is a vectorized version
of cont_hist. pm_histogram is a generic histogram
function that is called by other functions in pmplots.
cont_hist(
df,
x,
xs = defx(),
y = "..count..",
add_density = y == "..density..",
add_layers = TRUE,
...
)
cont_hist_list(df, x, ...)
pm_histogram(
...,
col = opts$histogram.col,
fill = opts$histogram.fill,
alpha = opts$histogram.alpha
)the data frame containing plotting data
the x column for geom_histogram
a list of information for the x axis
what to use for the y-axis on the histogram; can be
"..count.." or "..density.."
if TRUE, a normal density line will
be plotted over the histogram using add_density
extra layers will be added only if TRUE
passed to geom_histogram and add_density
a character value passed to geom_histogram
a character value passed to geom_histogram
a numeric value passed to geom_histogram
A single plot.
data <- data.frame(WT = rnorm(1000,80,20))
cont_hist(data, x = "WT//Weight (kg)")
#> `stat_bin()` using `bins = 30`. Pick better value with `binwidth`.