Description Usage Arguments Value
Generates a ggplot2 plot with an overview of excitation and emission spectra.
1 2 | plot_spectra(wavelengths, excitations, emissions, proteins, lasers = NA,
channels = NA, palette = NA, background.alpha = 0.1)
|
wavelengths |
A vector of wavelengths (nm). |
excitations |
A vector of excitation intensities. |
emissions |
A vector of emmision intensities. |
proteins |
A vector of protein labels that correspond to each measurement. |
lasers |
Optional vector of lasers to highlight e.g. c(488, 642) |
channels |
Optional vector of channels to highlight e.g. c('530/30', '670LP'). |
palette |
Name of colorbrewer palette for discrete scale (if NA, spectra are coloured by emission wavelength. |
background.alpha |
Transparency value for channel highlight. |
ggplot2 plot object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.