Learn R Programming

specmine (version 3.1.6)

plot_spectra_simple: Plot spectra (simple)

Description

Plot spectra from dataset (simple version).

Usage

plot_spectra_simple(dataset, samples = NULL, 
variable.bounds = NULL, xlab = NULL, ylab = NULL, 
lty = 1, lwd = 1, col = 1, reverse.x = FALSE, ...)

Arguments

dataset

list representing the dataset from a metabolomics experiment.

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

lty

parameter of matplot.

lwd

parameter of matplot.

col

parameter of matplot.

reverse.x

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

additional parameters to pass to matplot.