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

plot.isotopeDataR Documentation

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 class 'isotopeData'
plot(
  x,
  consumer = NULL,
  b1 = NULL,
  b2 = NULL,
  legend = c(1.15, 1.15),
  density = "both",
  xylim = NULL,
  ...
)

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".

xylim

argument for modifying x-y limits (for testing)

...

additional arguments passed to this function.

Value

a ggplot2 object with the biplot of isotopes.

Examples

a <- generateTPData()
plot(a)


AndrewLJackson/tRophicPosition documentation built on Jan. 2, 2023, 12:14 p.m.