Producing a static (ggplot) or dynamic (plotly) plot for visual comparison of several time series.
1 | plot_series(df, x, y, color, method = "ggplot", ...)
|
df |
data frame with series data |
x |
date variable (x axis) |
y |
numeric variable (y axis) |
color |
grouping variable |
method |
either "ggplot" or "plotly" |
... |
xlab, ylab, title or labels for time series |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.