plot_spectra: Plot emission and excitation spectra.

Description Usage Arguments Value

Description

Generates a ggplot2 plot with an overview of excitation and emission spectra.

Usage

1
2
plot_spectra(wavelengths, excitations, emissions, proteins, lasers = NA,
  channels = NA, palette = NA, background.alpha = 0.1)

Arguments

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.

Value

ggplot2 plot object.


ssokolen/fluoroscripts documentation built on May 30, 2019, 8:43 a.m.