Plot temporal Trends in plankton data

pr_plot_Trends(
  df,
  Trend = "Raw",
  Survey = "NRS",
  method = "lm",
  trans = "identity"
)

Arguments

df

A dataframe containing the plankton timeseries data.

Trend

Over what timescale to fit the Trend - "Raw", "Month" or "Year"

Survey

"NRS" or "CPR" data

method

Any method accepted by geom_smooth()

trans

transformation of y axis on plot, whatever scale_y_continuous() trans accepts #'

Value

a timeseries plot

Examples

df <- pr_get_Indices("NRS", "Z") %>%
  dplyr::filter(Parameters == 'Biomass_mgm3')
pr_plot_Trends(df, Trend = "Month", Survey = "NRS")
#> Warning: Removed 1 row containing non-finite outside the scale range (`stat_smooth()`).
#> Warning: Removed 1 row containing missing values or values outside the scale range
#> (`geom_point()`).

pr_plot_Trends(df, Trend = "Year", Survey = "NRS")
#> Warning: Removed 1 row containing non-finite outside the scale range (`stat_smooth()`).
#> Warning: Removed 1 row containing missing values or values outside the scale range
#> (`geom_point()`).

pr_plot_Trends(df, Trend = "Raw", Survey = "NRS")
#> Warning: Removed 53 rows containing non-finite outside the scale range
#> (`stat_smooth()`).
#> Warning: Removed 53 rows containing missing values or values outside the scale range
#> (`geom_point()`).