Open ShashTrip1 opened 3 months ago
I also have this problem. I tried to reorder the colData(group.by) but failed. Does anybody know how to do it?
You can set the factor level in the result data frame before plotting.
@flde HI, Can you show an example about how to reorder the levels?
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.
Can I reorder the idents in plotDAbeeswarm?