Description Usage Arguments Value Examples
View source: R/veg_functional.cover.plot.R
For veg data, summarizes and plots mean cover of functional groups.
Data are summarized for all years specified.
Background data are supplied from the lpi data select. Data for a selected ranch are not used in the calculation of regional averages.
1 2 3 4 5 6 | functional.cover.plot(lpi, type = "absolute", transect,
background = TRUE, invasives = FALSE,
surveyyear = max(levels(as.factor(lpi$year))),
xlab = "Functional Group", ylab = "Percent Cover",
legendtitle = "Ranch", legendnames = c(paste(transect, collapse =
" "), "Others"), boxcolors = c("black", "gray"))
|
lpi |
A dataframe object of lpi data from a veg survey |
type |
"absolute" or "relative" cover |
transect |
Ranch for which to make plot |
background |
= TRUE whether to display "background" data on plot not from selected ranch |
surveyyear |
The year for which to calculate 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 |
A ggplot of functional cover with error bars
1 | data = functional.cover.plot(lpi, type = "absolute")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.