cover.sum.plot: Plot species richness and cover

Description Usage Arguments Value Examples

View source: R/veg_cover.sum.plot.R

Description

For veg data, plots cover of shrubs, trees, litter, thatch, bare ground for each year in which data were collected.

Tree and shrub covers come from releve estimates.

NOTE: Thatch was only measured starting in 2017.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
cover.sum.plot(lpi, releve, transect,
  surveyyear = c(levels(as.factor(lpi$year)),
  levels(as.factor(checklist$year))),
  choose.variable = c("SpeciesRichness", "Litter", "Thatch",
  "BareGround", "Trees", "Shrubs"), plot.names = c("Species Richness",
  "Litter", "Thatch", "Bare Ground", "Trees", "Shrubs"),
  multiple_years = TRUE, barcolors = c("olivedrab", "steelblue3",
  "mediumpurple4", "orange3", "tan2"), legend = TRUE,
  legendname = "Year", xlab = "Point ID", ylab = "Value",
  xangle = 45)

Arguments

lpi

A dataframe object of lpi data from a veg survey

releve

A dataframe object of releve data from a veg survey

transect

Ranch for which to make the plot

surveyyear

The years for which to make the table

choose.variable

Character vector that identifies which variables to summarize. See cover.summary()

multiple_years

Boolean that determines whether multiple years of data are plotted. if FALSE, only most recent year is plotted

barcolors

Character vector of bar fill colors for each year of data

legend

Boolean that specifies whether to display a legend

legendname

A title for your legend

xlab, ylab

Labels for axes

xangle

Angle to display point names on x axis

plot.name

Character vector of names of plots. If choose.variable is manually changed, then plot.names also needs to be changed.

Value

ggplot object

Examples

1
data = cover.sum.plot(lpi, checklist)

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