dyplot | R Documentation |
First column of the data.frame must be a datetime or date column. The rest of columns must be numeric of the same units.
dyplot(
df,
title = NULL,
xlab = NULL,
ylab = NULL,
group = NULL,
legend_width = 250,
format = TRUE,
css_file = NULL,
width = NULL,
height = NULL,
...
)
df |
data.frame or tibble, first column of name |
title |
character, title of the plot (accepts HTML code) |
xlab |
character, X axis label (accepts HTML code) |
ylab |
character, Y axis label (accepts HTML code) |
group |
character, dygraphs group to associate this plot with. The x-axis zoom level of dygraphs plots within a group is automatically synchronized. |
legend_width |
integer, width (in pixels) of the div which shows the legend. |
format |
logical, whether to format dygraph with custom CSS file |
css_file |
character path to a CSS file to format dygraph plot. If NULL, custom CSS is applied to dygraph. Only used when |
width |
Width in pixels (optional, defaults to automatic sizing) |
height |
Height in pixels (optional, defaults to automatic sizing) |
... |
extra arguments to pass to |
dygraph
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.