powered by
Function returns a plot where each point represents the intensity of a peak in a sample. Peaks are coloured according to a metadata class.
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, ...)
list representing the dataset from a metabolomics experiment.
string indicating the metadata's variable.
vector with samples' names, if NULL all the samples will be considered.
numeric vector with two elements indicating the interval of x-values to plot.
x-axis label.
y-axis label.
string indicating the place that the legend's box will be placed.
numeric value that indicates the amount by which the legend is magnified relative to the default.
boolean value indicating if the x-axis will be shown reversed or not.
numeric value indicating the amount by which the plot points are magnified relative to the default.
additional parameters to matplot.
# NOT RUN { library(specmine.datasets) data(propolis) plot_peaks(propolis, "seasons", variable.bounds = c(0,3), samples=c("XX_au", "XX_sm", "XX_wi")) # }
Run the code above in your browser using DataLab