Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

geom_overlay - legend labels + stacked overlays #71

Open
alexheubeck opened this issue Aug 27, 2020 · 1 comment
Open

geom_overlay - legend labels + stacked overlays #71

alexheubeck opened this issue Aug 27, 2020 · 1 comment

Comments

@alexheubeck
Copy link

Hi all,

I'm using geom_overlay to overlay multiple gates from the same sample onto one histogram plot, so that I can compare activation markers between different populations:

CD40 overlay

Is there a way to generate a legend that displays all of the population names that I've added onto a plot?

Additionally, is there a way to generated a "stacked" offset overlay instead of a directly overlayed? I know you can use the ggridges package to stack different samples, but being able to do the same with different nodes would be useful.

Thanks,

Alex

@rwbaer
Copy link

rwbaer commented Mar 30, 2022

@alexheubeck - I don't know if this will work for you, but try adding a + theme(compete = TRUE) to the end of you ggcyto() plot instruction set. It made the legends reappear for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants