This function generates a plot of time series data collected by the Rocky Intertidal Monitoring program.

rocky_tsplot(data, nms, sp_code, sp_name, sp_filter = "ALL")

Arguments

data

Either rocky_data or rocky_counts.

nms

The National Marine Sanctuary code, e.g. "CINMS", from sanctuaries.

sp_code

The species code of interest as referenced in rocky_data or rocky_counts and described in rocky_species.

sp_name

The species name used in the title of the plot.

sp_filter

The filter value to apply for rocky_cover the sp_target and for rocky_counts the sp_method. Defaults to "ALL".

Value

This function returns a dygraph object of the plotted time series data.

Examples

if (FALSE) {
rocky_tsplot(rocky_cover, "OCNMS", "CHTBAL", "Acorn Barnacles")
rocky_tsplot(rocky_cover, "CINMS", "CHTBAL", "Acorn Barnacles")
rocky_tsplot(rocky_counts, "OCNMS", "PISOCH", "Ochre Seastar")
}