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 Ident in plotDAbeeswarm #311

Open
ShashTrip1 opened this issue Mar 9, 2024 · 4 comments
Open

Reorder Ident in plotDAbeeswarm #311

ShashTrip1 opened this issue Mar 9, 2024 · 4 comments

Comments

@ShashTrip1
Copy link

Can I reorder the idents in plotDAbeeswarm?

@chizuru050314
Copy link

I also have this problem. I tried to reorder the colData(group.by) but failed. Does anybody know how to do it?

@flde
Copy link

flde commented Mar 12, 2024

You can set the factor level in the result data frame before plotting.

@chizuru050314
Copy link

@flde HI,
Can you show an example about how to reorder the levels?

@flde
Copy link

flde commented Mar 14, 2024

Just for clarity, I am not part of miloR. Assuming the variable you are using for group.by in plotDAbeeswarm is called ident.

ident_order <- c("A", "B", "C") # For example
result$ident <- factor(result$ident, levels=ident_order)
plotDAbeeswarm(result, group.by="ident")

Hope that helps.

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