time_dygraph | R Documentation |
timePlot
.Function for plotting interactive time-series plots in a similar way to
timePlot
.
time_dygraph(
df,
variable = "value",
colour = "dodgerblue",
range = TRUE,
step = FALSE,
points = FALSE,
fill = FALSE,
color = colour,
ylab = NA,
legend_width = 400,
tz = NA,
window = NULL,
group = NULL,
y_reference = NA,
main = NULL,
highlight = FALSE
)
df |
Data frame with a variable/column named |
variable |
Variable in |
colour , color |
Colour of plotted geometry. Default is
|
range |
Should a range selector be plotted? Default is |
step |
Should the plot take a stepped look? Default is |
points |
Should the plot include points where observations are recorded?
Default is |
fill |
Should the plot fill between the x-axis and the geometry? Default
is |
ylab |
String for y-axis label. |
legend_width |
Width of legend in pixels. Default is |
tz |
Timezone to display plot with. If not used, |
window |
An optional range window. Uses a date vector with a length of two. |
group |
An optional grouping string for when multiple plots are to be connected when rendered in an HTML document. |
y_reference |
Location of a y-axis reference line. |
main |
The plot's title. |
highlight |
On mouse-over, should the time series be highlighted? |
Invisible, an interactive dygraph.
Stuart K. Grange
timePlot
, dygraph
,
plot_time_series
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.