Plot hydrological time-series (highcharts)
Usage
plot_ts(
data,
name = NA,
unit = NA,
yrange = NULL,
unit.threshold = 10,
subtitle = NULL,
...
)Arguments
- data
data.table to plot with columns
dateandvalue(will usedate_endifdateis missing)- name
series' display name
- unit
display unit
- yrange
manual y-axis range
- unit.threshold
maximum threshold to convert from km³ to MCM unit (default: 10 km³)
- subtitle
chart subtitle
- ...
Arguments passed on to
hc_themedhca highchart object
titlechart title
labeloptional annotation
base_fontdefault font for all chart elements
axesshow axes (default: TRUE)
exportinginclude chart export menu (default: TRUE)
creditsinclude credits (default: FALSE)