Description Usage Arguments Value Author(s) See Also Examples
View source: R/gating-functions.R
gate_boundary_draw
constructs an interactive plotting window for user
to select the upper bound of a population which is constructed into a
rectangleGate
object and stored
in a filters
list. Both 1-D and 2-D
boundary gates are supported, for 2-D boundary gates all events below the
select x and y coordinates are included in the gate. Multiple boundary gates
are not currently supported.
1 2 |
fr |
a |
alias |
the name(s) of the populations to be gated. Multiple boundary
gates are not currently supported. |
channels |
vector of channel names to use for plotting, can be of length 1 for 1-D density histogram or length 2 for 2-D scatter plot. |
plot |
logical indicating whether the data should be plotted. This feature allows for constructing gates of different types over existing plots which may already contain a different gate type. |
label |
logical indicating whether to include
|
... |
additional arguments for |
afilters
list containing the
constructed rectangleGate
object.
Dillon Hammill (Dillon.Hammill@anu.edu.au)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | ## Not run:
# Copy and paste into console to interactively draw gates
library(CytoRSuiteData)
# Load in samples to flowSet
fs <- Activation
# Transform fluorescent channels
fs <- transform(fs, estimateLogicle(fs[[4]], cyto_fluor_channels(fs)))
# Get 1-D boundary gate using gate_boundary_draw
bg <- gate_boundary_draw(fs[[4]],
alias = "Cells",
channels = c("PE-A")
)
# bg is a filters object - extract rectangleGate using `[[`
bg[[1]]
#' # Get 2-D boundary gate using gate_boundary_draw
tg <- gate_boundary_draw(fs[[2]],
alias = "Cells",
channels = c("PE-A", "Alexa Fluor 700-A")
)
# bg is a filters object - extract rectangleGate using `[[`
bg[[1]]
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.