RGLab / openCyto

A package that provides data analysis pipeline for flow cytometry.
GNU Affero General Public License v3.0
75 stars 29 forks source link

Legend #243

Closed lulunaheed closed 1 year ago

lulunaheed commented 1 year ago

Is there a way to add a legend to the figures in the autoplot function? I would like there to be a key that indicates the values associated with the colors in the plot.

lulunaheed commented 1 year ago

Was able to successfully add a legend using the following addition: "+ theme(legend.position = "right", aspect.ratio = 1)"

so now it is: autoplot(deadCellsExclusion, x = chnl[1], y = chnl[2], legend = TRUE) + geom_gate(g4) + theme(legend.position = "right", aspect.ratio = 1)