plot_peaks: Plot the peaks of a MS or NMR dataset.

Description Usage Arguments Examples

View source: R/graphics.R

Description

Function returns a plot where each point represents the intensity of a peak in a sample. Peaks are coloured according to a metadata class.

Usage

1
2
3
plot_peaks(dataset, column.class, samples = NULL, variable.bounds = NULL,
xlab = NULL, ylab = NULL, legend.place = "topright", cex = 0.8,
reverse.x = FALSE, p.size=0.5, ...)

Arguments

dataset

list representing the dataset from a metabolomics experiment.

column.class

string indicating the metadata's variable.

samples

vector with samples' names, if NULL all the samples will be considered.

variable.bounds

numeric vector with two elements indicating the interval of x-values to plot.

xlab

x-axis label.

ylab

y-axis label.

legend.place

string indicating the place that the legend's box will be placed.

cex

numeric value that indicates the amount by which the legend is magnified relative to the default.

reverse.x

boolean value indicating if the x-axis will be shown reversed or not.

p.size

numeric value indicating the amount by which the plot points are magnified relative to the default.

...

additional parameters to matplot.

Examples

1
2
3
  library(specmine.datasets)
  data(propolis)
  plot_peaks(propolis, "seasons", variable.bounds = c(0,3), samples=c("XX_au", "XX_sm", "XX_wi"))

specmine documentation built on Sept. 21, 2021, 5:06 p.m.