This function generates spectral ribbon plots for positive and negative expression data.

spectral.ribbon.plot(
  pos.expr.data,
  neg.expr.data,
  spectral.channel,
  asp,
  fluor.name,
  title = NULL,
  af = FALSE,
  removed.data = NULL,
  figure.dir = NULL,
  factor.names = NULL
)

Arguments

pos.expr.data

A matrix containing the positive expression data.

neg.expr.data

A matrix containing the negative expression data.

spectral.channel

A character vector specifying the spectral channels.

asp

The AutoSpectral parameter list. Prepare using get.autospectral.param.

fluor.name

A character string specifying the fluorophore name.

title

A character string to prefix the plot file name. Default is NULL

af

A logical value indicating whether autofluorescence removal is being performed. Default is FALSE

removed.data

A matrix containing the removed data, if applicable. Default is NULL. If omitted, only two groups (facets) are plotted.

figure.dir

Output folder where the figures will be created. Default is NULL, enabling automatic selection inside AutoSpectral.

factor.names

Optional titles for the facets on the plot. Default is NULL, enabling automatic selection inside AutoSpectral. A character vector containing three elements should be provided unless af is set to TRUE and removed.data is NULL, in which case two labels must be provided.

Value

None. The function saves the generated spectral ribbon plot to a file.