dailyInterpretation: Estimation of daily mean abundances from long term monitoring...

View source: R/plotShark.R

dailyInterpretationR Documentation

Estimation of daily mean abundances from long term monitoring data

Description

Uses linear interpretation to calculate hypothetical abundances for all days during montoring perod.

Usage

dailyInterpretation(data, taxa = "Genus")

Arguments

data

(Required) A dataframe (of type Zooplankton or Phytoplankton?)

taxa

(Optional, default=Genus") A character string refering to the taxa-specific column in the dataframe

Value

Dataframe, with year summarized and daily abundances interpreted.

Examples

data <- getSHARK("Phytoplankton") %>%
   addDyntaxa() %>%
   annotateSHARK() %>%

 filter(Station == "BY31 LANDSORTSDJ",
        Year > 2006,
        unit == 	"mm3/l",
        Phylum %in% c(
                      "Miozoa",
                      "Bacillariophyta",
                      "Ciliophora",
                      "Haptophyta",
                      "Chlorophyta",
                      "Cyanobacteria"
  )) %>%

 group_by(SDATE, Phylum, Depth) %>%
 summarize(Value=sum(Value)) %>%

 group_by(SDATE, Phylum) %>%
 summarize(Value=mean(Value)) %>%

 dailyInterpretation(taxa="Phylum")


andreasnovotny/shaRk documentation built on Feb. 12, 2023, 7:06 p.m.