vector_hist | R Documentation |
Quickly make a ggplot histogram from a single vector
vector_hist(.data, 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
rnorm(1000, 0, 1) %>% vector_hist()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.