ggcyto::autoplot legend for color scale gradient
1
0
Entering edit mode
alex • 0
@222f89de
Last seen 2.1 years ago
Germany

Hi everyone. Does anyone know how to add a legend for the color scale gradient used in ggcyto::autoplot plots like this? \ Thanks!


autoplot(plotdata, 
         "BV421.A", 
         "SSC.A", 
         bins=128) + 
  geom_gate(g1) +
  scale_x_continuous(
    name = "tagBFP(log10, A.F.U.)") +
  ggcyto_par_set(limits = list(x=c(1.5,5)))
sessionInfo( )

enter image description here

ggcyto • 903 views
ADD COMMENT
0
Entering edit mode
@james-w-macdonald-5106
Last seen 2 hours ago
United States

Using the example data (e.g., running example(autoplot)) after loading ggcyto.

## no legend
autoplot(fs, x = 'FSC-H', y ='SSC-H') 

## yes legend

 autoplot(fs, x = 'FSC-H', y ='SSC-H') + theme(legend.position = "right")
ADD COMMENT

Login before adding your answer.

Traffic: 881 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6