Plot temporal Trends in plankton data

pr_plot_Trends(df, Trend = "Raw", 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"

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", "Zooplankton") %>%
  dplyr::filter(Parameters == "Biomass_mgm3") %>%
  pr_model_data()
pr_plot_Trends(df, Trend = "Month")
#> Warning: Removed 1 row containing non-finite outside the scale range (`stat_smooth()`).
#> Warning: Removed 2 rows containing missing values or values outside the scale range
#> (`geom_point()`).

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

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