Learn R Programming

specmine (version 2.0.3)

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 = F, ...)

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.

Examples

Run this code
# NOT RUN {
  ## Example of plotting spectra (simple)
  data(cassavaPPD)
  plot_spectra_simple(cassavaPPD, samples = c("IAC5_4", "BRA_1"), 
  variable.bounds = c(1000,2000))
# }

Run the code above in your browser using DataLab