Learn R Programming

ume (version 1.5.2)

uplot_ri_vs_sample: Average Relative Intensity per Sample

Description

Creates a bar plot showing the median relative intensity (default: norm_int) for each sample (grouped by file_id). The overall dataset-wide median and standard deviation are shown in the title.

Usage

uplot_ri_vs_sample(
  df,
  int_col = "norm_int",
  grp = "file_id",
  col = "grey",
  logo = TRUE,
  width = 0.3,
  gg_size = 12
)

Value

A ggplot2 object containing a bar plot of per-sample median relative intensity.

Arguments

df

A data.table containing at least:

  • a column with relative intensity values (int_col)

  • a sample or file identifier (grp)

int_col

Character. Column name containing relative intensity values.

grp

Character. Column name specifying sample / file grouping.

col

Character. Fill color for bars.

logo

Logical. If TRUE, adds a UME caption.

width

Numeric. Width of bars (default 0.3).

gg_size

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

Details

Plot Average Relative Intensity per Sample

See Also

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_vk()

Examples

Run this code
uplot_ri_vs_sample(mf_data_demo, int_col = "norm_int", grp = "file")

Run the code above in your browser using DataLab