Description Usage Arguments Value
If spectra(physeq)[["peaks"]] is FALSE, then this will plot the raw intensities of each spectrum in the sample. Otherwise, we only plot the positions and heights of peaks for each sample.
1 2 3 4 |
physeq |
A phyloseq object containing the spectrum to plot |
method |
The R package to use for the plot. Currently only supports "speaq" or "ggplot2". |
log_scale |
Should the intensities be plotted on a log scale? |
subsample_frac |
We will only plot ever the value at every 1 / subsample_frac indices. This can accelerate plotting in the case that |
x_min |
What is the minimum index to display? |
x_max |
What is the maximum index to display? |
col |
A string giving a column name in sample_data(physeq) according to which we will color the spectra. |
linetype |
A string giving a column name in sample_data(physeq) according to which we will modify the spectra linetypes. |
facet_cols |
A character vector giving the column names in sample_data(physeq) according to which to facet the plot by. |
plot_title |
A title to include for the figure. |
alpha |
The transparency parameter for the plots, when using ggplot2. |
line_thickness |
The thickness of the spectra lines, when using ggplot2. |
If "ggplot2" is used, then return the ggplot2 object containing the plot. Otherwise does not return anything.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.