Learn R Programming

ume (version 1.5.2)

uplot_freq_ma: Histogram of Mass Accuracy

Description

Creates a histogram of mass accuracy values (ppm). Includes summary statistics (median, 2.5% and 97.5% quantiles). Follows general uplot behavior:

  • returns a ggplot2 object by default

  • converts to plotly only if plotly = TRUE

  • uses caption-style UME logo

Usage

uplot_freq_ma(
  mfd,
  ma_col = "ppm",
  col = "grey",
  gg_size = 12,
  logo = TRUE,
  plotly = FALSE,
  ...
)

Value

ggplot2 object, or plotly object if plotly = TRUE.

Arguments

mfd

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.

ma_col

Character string. Column name containing mass accuracy values.

col

Histogram fill color.

gg_size

Base text size for theme_uplots(). Default = 12.

logo

Logical. If TRUE, adds a UME caption.

plotly

Logical. If TRUE, return interactive plotly object.

...

Additional arguments passed to methods.

See Also

Other plots: uplot_cluster(), uplot_cvm(), uplot_dbe_minus_o_freq(), uplot_dbe_vs_c(), 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()