functional.cover.change.plot: Functional cover change summary plot

Description Usage Arguments Value Examples

View source: R/veg_functional.cover.change.plot.R

Description

For veg data, summarizes change in mean cover of functional groups for a property

This will use data from the FIRST and LAST year specified for which there is lpi data on the selected ranch

Regional comparison data will use these same years to calculate average change

EX:: lpi data covers 2015-2019. Ranch XXXX has data from 2016 and 2019. Regional averages will therefore only include other properties that were sampled in 2016 and 2019. Ranches surveyed in 2015 and 2018 are not included in the regional calculation.

Usage

1
2
3
4
5
6
7
functional.cover.change.plot(lpi, transect, invasives = FALSE,
  surveyyear = levels(as.factor(lpi$year)), background = TRUE,
  type = "absolute", xlab = "Functional Group",
  ylab = paste("Cover Change", " ", min(levels(as.factor(surveyyear))),
  "-", max(levels(as.factor(surveyyear))), sep = ""),
  legendtitle = "Ranch", legendnames = c(paste(transect, collapse =
  " "), "Others"), boxcolors = c("black", "gray"))

Arguments

lpi

A dataframe object of lpi data from a veg survey

transect

Ranch for which to make plot

invasives

Boolean whether to include invasives as a functional group

surveyyear

The years for which to make the plot

background

= TRUE whether to display "background" data on plot not from selected ranch

type

"absolute" or "relative" cover

xlab, ylab

Axis Labels

legendtitle

Character string of legend title

legendnames

specifies how points are named on the legend

boxcolors

vector of colors to display data on the boxplot

Value

A ggplot of functional cover change with error bars

Examples

1
data = functional.cover.plot(lpi, type = "absolute")

weverkaj/RMN documentation built on July 26, 2019, 10:34 p.m.