isoplot_generic: Customisable three-isotope plots.

Description Usage Arguments Value See Also Examples

Description

The function plots Pb isotope ratio data in a three-isotope diagram, calculates a regression line and saves the plot in PDF, PNG and SVG formats.

Usage

1
2
isoplot_generic(data, x = "Pb208207", y = "Pb206207", factor = NULL,
  regression = FALSE, save = FALSE)

Arguments

data

A data.table generated by corr.mbf function and subsetted to cointain only samples to be plotted in the three-isotope diagram. Data should contain the columns Pb208207, Pb206207, Pb208206 and Pb207206 with the measured Pb isotope ratios for 208Pb/207Pb, 206Pb/207Pb, 208Pb/206Pb and 207Pb/206Pb, respectively.

x, y

The string "Pb20x20y" to be plotted on the x and y-axis. Default values are "Pb208207" and "Pb206207", respectively.

factor

A factor within the data.table that can be used to differentiate data points with different colours. Default value is NULL.

regression

Logical. If TRUE, a regression line and its R^2 value are added to the plot. Default is FALSE.

save

Logical. If TRUE, the plot is saved in the "output" folder with the file name "data_gen" in PDF, PNG and SVG formats.

Value

The function prints a three-isotope plot on screen. Additionally, if save = TRUE, three files named "data_gen" are saved in the "output" folder with the file name "data_gen" in PDF, PNG and SVG formats.

See Also

corr_mbf isoplot_pm10

Examples

1
2

andreabz/pbratios documentation built on May 12, 2019, 2:42 a.m.