rocky_tsplot: Plot time series of rocky intertidal monitoring data

View source: R/rocky.R

rocky_tsplotR Documentation

Plot time series of rocky intertidal monitoring data

Description

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

Usage

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

## Not run: 
rocky_tsplot(rocky_cover, "OCNMS", "CHTBAL", "Acorn Barnacles")
rocky_tsplot(rocky_cover, "CINMS", "CHTBAL", "Acorn Barnacles")
rocky_tsplot(rocky_counts, "OCNMS", "PISOCH", "Ochre Seastar")

## End(Not run)

marinebon/nms4r documentation built on April 23, 2023, 6:09 p.m.