Description Usage Arguments Value
Generates a ggplot2 with emission spectra generated by specified laser.
1 2 | plot_emissions(wavelengths, excitations, emissions, proteins, lasers,
channels = NA, palette = NA, size = 2, 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 |
Vector of lasers exciting given proteins 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. |
size |
Line size for emission spectra. |
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.