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(), fill = "black", col = "white",
  alpha = 0.6, y = "..count..", add_density = y == "..density..",
  add_layers = TRUE, ...)

cont_hist_list(df, x, ...)

pm_histogram(..., col = "white", fill = "black", alpha = 0.6)

Arguments

df

the data frame containing plotting data

x

the x column for geom_histogram

xs

a list of information for the x axis

fill

a character value passed to geom_histogram

col

a character value passed to geom_histogram

alpha

a numeric value passed to geom_histogram

y

what to use for the y-axis on the histogram; can be "..count.." or "..density.."

add_density

if TRUE, a normal density line will be plotted over the histogram using add_density

add_layers

extra layers will be added only if TRUE

...

passed to geom_histogram and add_density

Value

A single plot.

Examples

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`.