Construct a dygraph using the custom formatting Wikimedia
dashboards use as standard. This is nothing special - a standard dygraph
with a bit of custom CSS shipped with the package - but it's surrounded by
code that allows the function to turn all our usual data.frame
formats
into xts::xts objects.
1 2 3 4 5 6 7 8 9 10 11 |
data |
a |
xlab |
the label to use for the dygraph's x-axis |
ylab |
the label to use for the dygraph's y-axis |
title |
the title to use on the dygraph |
legend_name |
a custom name for the variable in the event that
|
use_si |
whether to use si labelling (1000 becomes 1K). |
expr |
an optional expression to evaluate prior to building the dygraph. We use this in (for example) reactive graphing |
group |
Group to associate this plot with. The x-axis zoom level of plots within a group is automatically synchronized |
... |
Additional parameters to pass on to dygraphs::dyOptions. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.