Skip to contents

Plot simple variable time-series (highcharts)

Usage

plot_tss(data, unit = NA, color = names(pal))

Arguments

data

data.table to plot with columns date and value (will use date_end if date is missing)

unit

display unit

color

an optional built-in color name (default "navy")

Value

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"