carbon.plot: Carbon Plot

Description Usage Arguments Value Examples

View source: R/soil_carbon.plot.R

Description

Plots soil carbon as scatterplot. Points from ranch identified are black, and all others are grayed out. Points are labeled automatically unless specified with labels = FALSE

Usage

1
2
3
4
5
6
carbon.plot(data, transect, year, labels = TRUE, background = TRUE,
  pointcolors = c(rep("black", length(transect)), "gray"),
  legend = TRUE, legendnames = c(transect, "Others"),
  legendtitle = "Ranch", box.padding = 0.5,
  xlab = "% Carbon 0-10 cm", ylab = "% Carbon 10-40 cm",
  pointsize = 2)

Arguments

data

from output of soil.final.cleanup()

transect

Character string of selected ranch code

year

The year or years for which to make the plot

labels

= TRUE determines whether points from the chosen ranch are labeled on the plot

background

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

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

box.padding

numeric adjusts spacing of labels on the plot

xlab, ylab

character strings for axis lables

pointsize

specifies size of a point

Value

plot of soil carbon data

Examples

1
carbon.plot(soil, "ranchname")

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