Plot Seascape as an interactive stacked and filled time series plot.

plot_ss_ts(tbl, colors = NULL, fillAlpha = 0.8, show_legend = "always")

Arguments

tbl

table in same format as output by sum_ss_grds_to_ts containing columns: date (date), cellvalue (double), n_cells (double).

colors

Character vector of colors for the data series. See dygraphs::dyOptions(). The default (NULL) automatically generates colors from the "Spectral" color ramp (see RColorBrewer::brewer.pal()).

show_legend

When to display the legend. See dygraphs::dyLegend().

Value

dygraph interactive plot

Examples


# prep input table of time series data
ply  <- get_url_ply("mbnms")
ss_i <- get_ss_info("global_8day")
grds <- get_ss_grds(ss_i, ply, date_beg = "2020-09-01")
tbl  <- sum_ss_grds_to_ts(grds)

plot_ss_ts(tbl)