Description Usage Arguments Value Examples
View source: R/soil_compaction.plot.r
From output of creates a soil compaction plot displaying BD and Infiltration data, and compares to other ranches in the region
1 2 3 4 5 6 7 | compaction.plot(data, transect, year, background = TRUE, labels = TRUE,
pointcolors = c(rep("black", length(transect)), "gray"),
legend = TRUE, legendnames = c(paste(c(transect)), "Others"),
legendtitle = "Ranch", xlab = "Bulk density (g/cm3)",
ylab = "Water Infiltration Rate (minutes)", box.padding = 0.5,
pointsize = 2, linetype = "dashed", Inftarget = 3.81,
xlims = c(NA, NA), ylims = c(NA, NA))
|
data |
dataframe from output of soil.final.cleanup() |
transect |
Character string of selected ranch code |
background |
= TRUE whether to display "background" data on plot not from selected ranch |
labels |
= TRUE determines whether points from the chosen ranch are labeled on the plot |
pointcolors |
= c("black", "gray") a vector that specifies colors of points on the plot |
legend |
specifies whether to display a legend |
legendnames |
specifies how points are named on the legend |
legendtitle |
title for the legend |
xlab, ylab |
character strings for axis lables |
box.padding |
numeric adjusts spacing of labels on the plot |
pointsize |
specifies size of a point |
linetype |
specifies type of line shown for BD and Infiltration targets |
Inftarget |
target infiltration time |
xlims, ylims |
numeric vectors of length 2 that specify the respective lower and upper limits of the axes. NA values cause default axis limits |
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.