cyto_plot_compensation-flowFrame-method: Plot Compensation in All Fluorescent Channels - flowFrame...

Description Usage Arguments Author(s) See Also Examples

Description

Plot each compensation control in all fluorescent channels to identify any potential compensation issues. The unstained control is overlaid in black as a reference.

Usage

1
2
3
4
5
## S4 method for signature 'flowFrame'
cyto_plot_compensation(x, channel_match = NULL,
  compensate = FALSE, spillover = NULL, axes_trans = NULL, layout,
  popup = FALSE, title = NA, header = NA, header_text_font = 2,
  header_text_size = 1, header_text_col = "black", ...)

Arguments

x

object of class flowFrame containing gated compensation controls and an unstained control.

channel_match

name of the fluorescent channel associated with the flowFrame. If not supplied users will need to select the channel from a dropdown menu.

compensate

logical indicating whether the samples should be compensated prior to plotting, set to FALSE by default. If no spillover matrix is supplied to the spillover_file argument the spillover matrix will extracted from the samples.

spillover

name of spillover matrix csv file including .csv file extension to apply to sample when compensate is TRUE. If no spillover is supplied the spillover matrix will be extracted directly from the flowFrame and applied to the sample when compensate is TRUE.

axes_trans

object of class transformList or transformerList generated by estimateLogicle which was used to transform the fluorescent channels of the supplied flowFrame. This transform object will be used internally to ensure axes labels of the plot are appropriately transformed. The transform object will NOT be applied to the flowFrame internally and should be applied to the flowFrame prior to plotting.

layout

vector of grid dimensions c(#rows,#columns) for each plot.

popup

logical indicating whether plots should be constructed in a pop-up window.

title

text to include above each plot, set to NA by default to remove titles.

header

title to use for the plots, set to the name of the sample by default.

header_text_font

font to use for header text, set to 2 by default.

header_text_size

text size for header, set to 1 by default.

header_text_col

colour for header text, set to "black" by default.

...

additional arguments passed to cyto_plot,flowFrame-method.

Author(s)

Dillon Hammill (Dillon.Hammill@anu.edu.au)

See Also

cyto_plot,flowFrame-method

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
library(CytoRSuiteData)

# Don't run - bypass directory check for external files
options("CytoRSuite_wd_check" = FALSE)

# Load in compensation controls
gs <- GatingSet(Compensation)

# Gate single cells using gate_draw
gt <- Compensation_gatingTemplate
gating(gt, gs)

# Compensation plots
cyto_plot_compensation(getData(gs, "Single Cells")[[1]],
  channel_match = "7-AAD-A",
  overlay = getData(gs, "Single Cells")[[4]]
)

# Don't run - return "CytoRSuite_wd_check" to default
options("CytoRSuite_wd_check" = TRUE)

DillonHammill/cytoSuite documentation built on March 7, 2019, 10:09 a.m.