Creates a Van Krevelen diagram (H/C vs O/C).
uplot_vk(
mfd,
z_var = "norm_int",
nice_labels = TRUE,
projection = TRUE,
palname = "viridis",
median_vK = TRUE,
col_median = "white",
ai = TRUE,
logo = TRUE,
size_dots = 3,
col_bar = TRUE,
tf = FALSE,
cex.axis = 12,
cex.lab = 15,
plotly = FALSE,
...
)ggplot or plotly object
data.table with molecular formula data as derived from
ume::assign_formulas. Column names of elements/isotopes must match names in
the isotope column of ume::masses; values are integers representing
counts per formula.
Character. Column name for variable used for color-coding. Content of column should be numeric.
Logical. If true (default) axis/legend labels are generated from ume::nice_labels_dt.
If TRUE, median z-values per (oc,hc) are used.
Color palette name for f_colorz() (viridis, magma, plasma, etc.).
Add median VK point.
Color of the marker for the median O/C and H/C value (Default = "white")
Add aromaticity index threshold lines.
Logical. If TRUE, adds a UME caption.
Numeric. Size of the dots in the plot (default = 0.5).
Logical. If TRUE, adds a color legend (default is TRUE).
Logical. If TRUE, applies a transformation to the color scale (default is FALSE).
Numeric. Size of axis text (default is 1).
Numeric. Size of axis labels (default is 1.4).
Logical. If TRUE, return interactive plotly object.
Arguments passed on to f_colorz
zNumeric vector. Values whose colors should be computed.
col_numInteger. Number of colors in the palette (default: 100).
verboselogical; if TRUE, show progress messages.
Plot Van Krevelen Diagram
Van Krevelen D. (1950). Graphical-statistical method for the study of structure and reaction processes of coal. Fuel, 29, 269-284.
Kim S., Kramer R.W., Hatcher P.G. (2003). Graphical method for analysis of ultrahigh-resolution broadband mass spectra of natural organic matter, the Van Krevelen Diagram. Analytical Chemistry, 75, 5336-5344. tools:::Rd_expr_doi("10.1021/ac034415p")
Other plots:
uplot_cluster(),
uplot_cvm(),
uplot_dbe_minus_o_freq(),
uplot_dbe_vs_c(),
uplot_freq_ma(),
uplot_freq_vs_ppm(),
uplot_hc_vs_m(),
uplot_heteroatoms(),
uplot_isotope_precision(),
uplot_kmd(),
uplot_lcms(),
uplot_ma_vs_mz(),
uplot_ms(),
uplot_n_mf_per_sample(),
uplot_pca(),
uplot_ratios(),
uplot_reproducibility(),
uplot_ri_vs_sample()