View source: R/uplot_dbe_vs_c.R
| uplot_dbe_vs_c | R Documentation |
Creates a scatter plot of DBE (double bond equivalents) vs. number of carbon
atoms. Points are color-coded by a selected variable (z_var). The plot
follows the same stylistic conventions as the other uplot_* functions,
including the unified theme and optional UME caption.
uplot_dbe_vs_c(
df,
z_var = "norm_int",
palname = "redblue",
col_bar = TRUE,
tf = FALSE,
logo = TRUE,
gg_size = 12,
plotly = FALSE,
...
)
df |
A data.table containing columns:
|
z_var |
Variable used for color coding (default |
palname |
Color palette name for f_colorz() (viridis, magma, plasma, etc.). |
col_bar |
Logical. If |
tf |
Logical. If |
logo |
Logical. If TRUE, adds a UME caption. |
gg_size |
Base text size for |
plotly |
If TRUE, returns a plotly interactive plot. |
... |
Arguments passed on to
|
A ggplot2 object or a plotly object (if plotly = TRUE).
Other plots:
uplot_cluster(),
uplot_cvm(),
uplot_dbe_minus_o_freq(),
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(),
uplot_vk()
uplot_dbe_vs_c(mf_data_demo, z_var = "norm_int")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.