Skip to contents

Plot ecdf for kelp segments

Usage

plot_cumulative_dist(
  annual_time_series,
  kelp_presence,
  ...,
  years = unique(annual_time_series$year),
  ylim = c(0, 200)
)

Arguments

annual_time_series

Annual time series generated by extract_time_series(). Does not work with quarterly time series

kelp_presence

Kelp presence data frame generated by get_kelp_presence()

...

These dots are for future extensions and must be empty.

years

Which years to plot. Default is all years present in annual_time_series

ylim

Restrictions on the y axis (% of historical median). For visual clarity only. Does not affect any calculations

Value

ggplot object of the cumulative distributions for each year of kelp segments