Learn R Programming

vectorsurvR (version 1.6.1)

plotInvasiveSums: Plot cumulative sum and interval sums of invasive species

Description

This function graphs the cumulative sum of invasive mosquito specie(s) as a line chart over a selected interval.The bar chart shows the interval sum of invasive specie(s). For cumulative sum, a convex slope indicates increased rate of species trappings, concave a decrease in rate, and liner a constant rate.

Usage

plotInvasiveSums(
  token,
  interval,
  target_year,
  invasive_species,
  agency_ids = NULL
)

Arguments

token

A valid access token returned from `getToken()`

interval

Calculation interval for abundance, accepts "CollectionDate",“Week”, “Biweek”, or “Month.

target_year

Year to plot

invasive_species

Names of invasive species to be plotted, multiple invasive species are entered in vector format i.e. `invasive_species = c("Ae aegypti", "Ae albopictus")`

agency_ids

An optional vector for filtering agency by id