plot_seasonal: Plot a multivariate time series of occurrence seasonally

Description Usage Arguments Value Examples

View source: R/plot_seasonal.R

Description

Plot a multivariate time series of occurrence seasonally

Usage

1
plot_seasonal(x, ..., trans = "identity")

Arguments

x

data.frame with a column called date and other columns for concentration of various species.

...

columns to plot, specified in a way compatible with dplyr::select()

trans

name of a transformation function applied to y axis. Exemples are "identity" for no transformation "sqrt" for square root, "log10" for log in base 10, "log1p" for log(n+1).

Value

A ggplot2 plot.

Examples

1
2
3
4
5
6
plot_seasonal(ost, benthic:planktonic)
plot_seasonal(ost, benthic:planktonic, trans="sqrt")
# try to define a treshold
library("ggplot2")
plot_seasonal(ost, benthic:planktonic, trans="sqrt") +
  geom_hline(aes(yintercept=200000), colour="red")

jiho/coclimer documentation built on July 26, 2020, 4:02 a.m.