cyto_sample | R Documentation |
cyto_sample
allows restriction of a flowFrame or flowSet by indicating
the percentage or number of events to retain.
cyto_sample(x, ...) ## S3 method for class 'GatingHierarchy' cyto_sample(x, display = 1, seed = NULL, ...) ## S3 method for class 'GatingSet' cyto_sample(x, display = 1, seed = NULL, ...) ## S3 method for class 'flowFrame' cyto_sample(x, display = 1, seed = NULL, ...) ## S3 method for class 'flowSet' cyto_sample(x, display = 1, seed = NULL, ...) ## S3 method for class 'list' cyto_sample(x, display = 1, seed = NULL, plot = FALSE, ...)
x |
object of class |
... |
not in use. |
display |
can be either a numeric [0,1] or integer to indicate the percentage or number of events to keep respectively. |
seed |
value used to |
plot |
logical required for lists to indicate whether sampling should be scaled per flowFrame to retain original ratios, as used in cyto_plot. |
object of class flowFrame
,
flowSet
,
GatingHierarchy
or
GatingSet
sampled to
display
events.
Dillon Hammill, Dillon.Hammill@anu.edu.au
# Load in CytoExploreRData to access files library(CytoExploreRData) # Load in samples fs <- Activation # Restrict first sample by 50% cyto_sample(fs[[1]], 0.5) # Restrict first sample to 10000 events cyto_sample(fs[[1]], 10000)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.