Skip to contents

Plot the given kelp area time series

Usage

plot_time_series(
  kelp_area_time_series,
  ...,
  type = c("absolute", "percent", "historical"),
  options = trend_options(),
  segment_id = NULL
)

Arguments

kelp_area_time_series

Data frame generated by extract_time_series()

...

additional aesthetics passed to the ggplot call

type

The type of representation for the area value. One of:

  • "absolute": absolute value of the kelp area, in km^2

  • "percent": kelp area relative to the maximum occupiable area, expressed as a percentage

  • "historical": kelp area relative to the historical median, expressed as a percentage

options

Options for plotting trend, created by trend_options(). Default is to plot no trend

segment_id

The segment ID(s) to plot. The default option segment_id = NULL will plot the first segment in the time series

Value

ggplot object for the time series