plot_data_one_iso: Plot biotracer data (1-D)

Description Usage Arguments Details See Also

View source: R/plot_data_one_iso.R

Description

plot_data_one_iso creates a 1-D plot of mix and source tracer data and saves the plot to a file in the working directory

Usage

1
2
3
4
5
6
7
8
9
plot_data_one_iso(
  mix,
  source,
  discr,
  filename,
  plot_save_pdf,
  plot_save_png,
  return_obj = FALSE
)

Arguments

mix

output from load_mix_data

source

output from load_source_data

discr

output from load_discr_data

filename

name of the plot file(s) to save (e.g. "isospace_plot")

plot_save_pdf

T/F, save the plot(s) as a pdf?

plot_save_png

T/F, save the plot(s) as a png?

return_obj

T/F, whether or not to return ggplot object for further modification, defaults to F

Details

An important detail is that plot_data_one_iso plots the raw mix data and adds the TDF to the source data, since this is the polygon that the mixing model uses to determine proportions. The plotted source means are:

μ_source + μ_discr

The source error bars are +/- 1 standard deviation, calculated as a combination of source and TDF variances:

√{σ^2_source + σ^2_discr}

plot_data_one_iso looks for 'C', 'N', 'S', and 'O' in the biotracer column headers and assumes they are stable isotopes, labeling the axes with, e.g., expression(paste(delta^13, "C (u2030)",sep="")).

See Also

plot_data


MixSIAR documentation built on Oct. 23, 2020, 6:45 p.m.