# Load data
data("dengue_MS")
# Multiple time series plot
plots <- plot_multiple(
plot_function = plot_timeseries,
data = dengue_MS,
var = c("tmax", "tmin", "pdsi"),
type = c("cov", "cov", "cov"),
aggregate_space = "meso_code",
pop = "population",
var_label = c("Max Temp", "Min Temp", "PDSI"),
time = "date",
area = "micro_code")
# Combine them with a shared legend
plot_combine(plot_list = plots,
ncol = 1,
align = "v",
combine_legend = TRUE,
combine_xaxis = TRUE,
rel_widths_l = c(7,1))
Run the code above in your browser using DataLab