gghist | R Documentation |
Quickly make a ggplot histogram from a dataframe and variable name
gghist(.data, var, bins = NULL)
.data: |
a vector of values, such as one returned by 'rnorm()' |
bins: |
how many bins the histogram uses. Defaults to ggplot's default |
a histogram ggplot object
mtcars %>% gghist(mpg)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.