ggnice_hist | R Documentation |
Plot histogram with some additional statistics using ggplot2. Ported from the OurTools package written by Dirk Hasenclever.
ggnice_hist(
data,
x,
x_lab = NULL,
x_breaks = NULL,
title = NULL,
vline = NULL,
digits = 1,
scale = scales::identity_trans()
)
data |
data.frame |
x |
numeric variable (part of data) |
x_lab |
Label for x-axis (character) |
title |
Plot title (character) |
vline |
x-intercept for vertical line (numeric) |
digits |
Number of digits (numeric) |
scale |
Scale transformation (character); defaults to "identity" (no transformation) |
## Not run:
ggnice_hist(data = mtcars,
x = hp,
x_lab = 'Gross horsepower',
title = 'mtcars: Gross horsepower',
scale = 'identity'
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.