Learn R Programming

ume (version 1.5.2)

uplot_ppm_avg: Plot Median of Mass Accuracy per Sample (ppm)

Description

This function generates a bar plot showing the median of mass accuracy (ppm) for each sample. It also provides the option to convert the plot into an interactive plotly object.

Usage

uplot_ppm_avg(df, cex.axis = 12, cex.lab = 15, plotly = FALSE, ...)

Value

A ggplot object or a plotly object depending on the plotly argument.

Arguments

df

A data frame containing the data. The columns ppm (ppm values) and file_id (sample identifiers) should be present in the data.

cex.axis

Numeric. Size of axis text (default is 1).

cex.lab

Numeric. Size of axis labels (default is 1.4).

plotly

Logical. If TRUE, return interactive plotly object.

...

Additional arguments passed to methods.