Draws percentage of area versus year as stacked areas, one band per class (or group), using the official MapBiomas colours, in the style of the MapBiomas coverage figures. Uses ggplot2 when available, otherwise base graphics.
Usage
plot_timeseries(ts, title = NULL, legend = TRUE, lang = c("en", "pt"))Arguments
- ts
A long data frame from
cover_timeseriesortimeseries_for_species.- title
Optional plot title. If
NULL, a title is built from thespecies/rangeattributes when present.- legend
Logical; draw the class legend (default
TRUE).- lang
Legend language:
"en"(default) or"pt". When"en", the band labels use the MapBiomasclass_encolumn (when present ints) and the axis/legend/title text is in English.
