This function plots a pre-defined gate on a sample, using ggplot2 and other necessary packages.

gate.sample.plot(
  samp,
  gate.data,
  gate.marker,
  gate.boundary,
  scatter.and.channel.label,
  control.type,
  asp
)

Arguments

samp

Sample identifier.

gate.data

Matrix containing gate data points.

gate.marker

Vector containing gate marker names.

gate.boundary

List containing gate boundary information.

scatter.and.channel.label

Named vector mapping scatter and channel labels.

control.type

Type of control: beads or cells

asp

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

Value

Saves the plot as a JPEG file in the specified directory.