R/stat_position.R
stat_position.Rd
It is usually not called directly by user but mainly used by compute_stats function (which is called by ggcyto add method when geom_states layer is added).
stat_position(gate, ...)
gate | a flowCore filter |
---|---|
... | other arguments |
adjust | adjust the position of the centroid |
abs | logical |
data_range | the actual data range |
a data.table of gate centroid coordinates
data(GvHD) fs <- GvHD[1:4] rect.g <- rectangleGate(list("FSC-H" = c(300,500), "SSC-H" = c(50,200))) rect.gates <- sapply(sampleNames(fs), function(sn)rect.g) stat_position(rect.gates)#> FSC-H SSC-H .rownames #> 1: 400 125 s5a01 #> 2: 400 125 s5a02 #> 3: 400 125 s5a03 #> 4: 400 125 s5a04