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

Reorder samples on violin plot #2121

Closed
tmccra2 opened this issue Sep 20, 2019 · 2 comments
Closed

Reorder samples on violin plot #2121

tmccra2 opened this issue Sep 20, 2019 · 2 comments

Comments

@tmccra2
Copy link

tmccra2 commented Sep 20, 2019

Plot order VlnPlot #454

How do we reorder samples on violin plots for V3?

Thanks!

@AndyR2
Copy link

AndyR2 commented Sep 24, 2019

this works for me

object_copy <- object
my_levels <- c(set_custom_order_of_clusters)
Idents(object_copy) <- factor(Idents(object_copy), levels= my_levels)

VlnPlot(object_copy, features = c("some_gene"))

@yuhanH
Copy link
Collaborator

yuhanH commented Sep 27, 2019

Thanks Andy!

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

3 participants