plot_VK_gradient: plot_VK_gradient

Description Usage Arguments Details

View source: R/plot_VK_gradient.R

Description

This function makes a traditional van Krevelen diagram (H/c vs. O/C). This plot shows the distribution of the assigned formulas as a function of elemental ratios, and 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_VK_gradient(
  data,
  var = "rel_abund",
  plot_title = "",
  panel = FALSE,
  var_panel,
  num_col = 2
)

Arguments

data

a tibble containing the following column names: "HtoC" and "OtoC"

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 (default = none)

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)

Details

The area above the horizontal line at H/C = 1.5 is designated as the aliphatic region in accordance with D'Andrilli et al. 2015 and Lv et al. 2017. The area below the diagonal line from H/C = 1.1 is designated as the aromatic region based on a modified aromaticity index >= 0.5 in accordance with Koch & Dittmar 2006.


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