gghistplot | R Documentation |
Plot the histgram figure beautifully with ggplot.
gghistplot(data, mapping, bins = 10)
data |
a tibble |
mapping |
the mapping parameter |
bins |
the number of bins |
A histogram figure by ggplot
date <- as.Date("2015-01-01") + days(0:180) thero <- returns(rGbm("thero", date))[-1] tthero <- tibble(x = date[-1], y = thero) gghistplot(tthero, aes(x = thero, y = stat(density)), bins = 20)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.