Learn R Programming

tRophicPosition (version 0.7.5)

plot.isotopeData: Plot stable isotope data (2 elements) with one or two baselines

Description

Plot stable isotope data (2 elements) with one or two baselines

Usage

# S3 method for isotopeData
plot(x, consumer = NULL, b1 = NULL, b2 = NULL,
  legend = c(1.15, 1.15), density = "both", ...)

Arguments

x

an isotopeData class object.

consumer

string representing the consumer.

b1

string representing baseline 1.

b2

string representing baseline 2.

legend

coordinates representing where to locate the legend.

density

string representing whether the density function is plotted. Accepted characters are "both" in which case this function will plot the density function above and to the right, "right", "above" or "none".

...

additional arguments passed to this function.

Value

a ggplot2 object with the biplot of isotopes.

Examples

Run this code
# NOT RUN {
a <- generateTPData()
plot(a)

# }

Run the code above in your browser using DataLab