Question: xyplot can't find channel (flowViz)
gravatar for ericjkort
4.0 years ago by
United States
ericjkort0 wrote:

I am trying to use the xyplot to plot data from a single FCS (version 3) file, but receive an error that the markers cannot be found, despite the fact that I can find them using getChannelMarker.

>data <- read.FCS("test.FCS", column.pattern = "^[FS0-9][S0-9]")
>getChannelMarker(data, "FSC")
     name desc
$P11  FSC <NA>
>getChannelMarker(data, "SSC")
     name desc
$P13  SSC <NA>
>xyplot("FSC" ~ "SSC", data=data)
Error in getChannelMarker(frm, : can't find "SSC"

The FCS file I am using can be downloaded from google drive here:

I get the same error if I load the FCS file into a flowSet rather than a flowFrame.

Any insights into what I am doing wrong here?  Thank you!


Here is my sessionInfo:

R version 3.1.2 (2014-10-31)
Platform: x86_64-w64-mingw32/x64 (64-bit)

[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252  
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C                         
[5] LC_TIME=English_United States.1252   

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base    

other attached packages:
[1] flowViz_1.30.1  lattice_0.20-31 flowCore_1.32.2

loaded via a namespace (and not attached):
 [1] Biobase_2.26.0      BiocGenerics_0.12.1 cluster_2.0.2       corpcor_1.6.8       DEoptimR_1.0-2    
 [6] graph_1.44.1        grid_3.1.2          hexbin_1.27.0       IDPmisc_1.1.17      KernSmooth_2.23-15
[11] latticeExtra_0.6-26 MASS_7.3-42         mvtnorm_1.0-2       parallel_3.1.2      pcaPP_1.9-60      
[16] RColorBrewer_1.1-2  robustbase_0.92-4   rrcov_1.3-8         stats4_3.1.2        tools_3.1.2    
flowcytometry flowcore flowviz • 1.0k views
ADD COMMENTlink modified 4.0 years ago by Jiang, Mike1.2k • written 4.0 years ago by ericjkort0
Answer: xyplot can't find channel (flowViz)
gravatar for Jiang, Mike
4.0 years ago by
Jiang, Mike1.2k
(Private Address)
Jiang, Mike1.2k wrote:

You don't want the regular quote marks in the formula( type help(formula) for more details).

simply removing 'quotes' will do

xyplot(FSC ~ SSC, data)

Or quote it with backticks If you have special characters

xyplot(`FSC-A` ~ `SSC-A`, data)


Also, if you don't mind to endeavor  to use `dev` version, please check out 'ggcyto' package (, it uses `ggplot-like` syntax which is the de facto of trellis plotting nowadays)

ADD COMMENTlink modified 4.0 years ago • written 4.0 years ago by Jiang, Mike1.2k

Perfect.  Thank you!

ADD REPLYlink written 4.0 years ago by ericjkort0
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 311 users visited in the last hour