Closed hamid-bolouri closed 4 years ago
You seems to be plotting the raw file that was loaded by read.flowSet
call, which is entirely independent from the gs
object your generated from flowjo_to_gatingset
.
To plot the data and gates, try to use ggcyto
instead of inventing your own wheel.
Hi, Hamid. What Mike is getting at is that the raw FCS file contains untransformed data on the raw scale, while the GatingSet object contains transformed data and gates (on the same scale). The raw FCS is on a different scale than the gates. The ggcyto package is a good way to pull out specific populations from the GatingSet and visualize them.
Ah, my bad! Sorry, and thanks for the explanation Greg.
Hamid
Hi Greg & Mike;
I am trying to reproduce a FlowJo gating strategy in R and find that some (polygon) gates seem scaled incorrectly in 1 dimension but are OK in the other. This seems different from issues #230 and #261 in that (perplexingly) only 1 dimension is affected (and the gates are polygons). In the example below, "Event_length" coords in the right-hand plot are ~ 10x higher in R than FlowJo but "Ir191Di" coords seem fine (see attached image). Am I doing something silly here? Any thoughts/guidance would be much appreciated.
Thanks,
Hamid
Sample code with in-line info/comments: