gglineplot | R Documentation |
Plot the time series data beautifully with ggplot.
gglineplot(data, mapping, date_labels = "%Y/%m/%d", date_breaks = "2 weeks")
data |
a tibble |
mapping |
the mapping parameter |
date_labels |
the x label |
date_breaks |
the period of the x label |
A ggplot figure of the time series
date <- as.Date("2015-01-01") + days(0:180) thero <- returns(rGbm("thero", date))[-1] tthero <- tibble(x = date[-1], y = thero) gglineplot(tthero, aes(x, y), "%Y/%m", "1 months")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.