Plot simple variable time-series (highcharts)
Usage
plot_tss(data, unit = NA, color = names(pal))
Arguments
- data
data.table to plot with columns
date
andvalue
(will usedate_end
ifdate
is missing)- unit
display unit
- color
an optional built-in color name (default "navy")
Examples
plot_ts(DATA[iso3=="mli" & sheet=="sheet1" & id=="rainfall"])
#> Error in dplyr::mutate(data, !!!list_names): Problem while computing `title = sprintf("%s %s (%s %s)", label, year,
#> comma(value), unit)`.
#> Caused by error in `comma()`:
#> ! could not find function "comma"