plot_Kroll_gradient: plot_Kroll_gradient

Description Usage Arguments

View source: R/plot_Kroll_gradient.R

Description

This function makes a Kroll diagram that plots average carbon oxidation states against carbon number (Kroll et al. 2011). It also shows the intensities of the detected ions on a gradient color scale (typically as a function of relative or percent abundance).

Usage

1
2
3
4
5
6
7
8
plot_Kroll_gradient(
  data,
  var = "rel_abund",
  plot_title = "",
  panel = FALSE,
  var_panel,
  num_col = 2
)

Arguments

data

a tibble containing the following column names: "NOSC" (from the computeNOSC() function) and "C"

var

a character string containing the continuous variable column name used to establish the color gradient (default = "rel_abund")

plot_title

a character string containing the sample name

panel

a logical value specifying whether a panel will be used (default = FALSE)

var_panel

a character string containing the column name specifying the factor variable to be used for faceting

num_col

an integer specifying the number of panel columns (default = 2)


robertyoung3/MSanalyzeNOM documentation built on June 7, 2021, 7:46 a.m.