Description Usage Arguments Value Examples
View source: R/soil_percent.change.plot.R
Creates a plot that shows average change in SOC at 2 depths and BD compared to regional average
1 2 3 4 5 6 7 8 | percent.change.plot(data, transect,
surveyyear = levels(as.factor(data$YEAR)), background = TRUE,
legendnames = c(paste(transect, collapse = " "), "Others"),
legendtitle = "Ranch", legend = TRUE, boxcolors = c("black",
"gray"), xlabels = c("Carbon 0-10 cm", "Carbon 10-40 cm",
"Bulk Density"), ylab = "% Change",
choosevariables = c("Carbon010change", "Carbon1040change",
"Bulk.density.change"))
|
data |
from output of soil.final.cleanup() |
transect |
Character string of selected ranch code |
surveyyear |
Years for which to make summary |
background |
= TRUE whether to display "background" data on plot not from selected ranch |
legendnames |
specifies how points are named on the legend |
legendtitle |
Character string of legend title |
boxcolors |
vector of colors to display data on the boxplot |
xlabels |
vector of strings to label boxplots |
ylab |
character string for y axis label |
choosevariables |
a character vector that specifies which columns in the data to plot |
Shows soil compaction plot
1 | compaction.plot(soil, "ranchname")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.