CoveragePlot() adjusting levels #694
-
Hi Tim, I am using CoveragePlot() to generate tracks from an ATAC object and I am trying to adjust the levels. For example:
When I run CoveragePlot(object = ATAC.object), the resulting plot is identical to the original with no change in order. To make sure I wasn't going crazy, I had also tried this with my RNA object and ExpressionPlot(), but that behaved as expected. I also checked to make sure the levels were set as I expected, and it appeared to be correct. The only thing I can think that is creating a conflict is that I select a subset of idents to plot. For example:
However, when I allow all idents to be plotted, the order is still the original. Any help would be greatly appreciated!
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I saw now that #269 asked about this previously, but did not explain how it was addressed. |
Beta Was this translation helpful? Give feedback.
-
To adjust the levels for the cell identities, you can use the levels(tcell)
CoveragePlot(tcell, region = "CD8A") levels(tcell) <- c("CD8 Naive", "CD8 TEM", "CD4 Naive")
CoveragePlot(tcell, region = "CD8A") |
Beta Was this translation helpful? Give feedback.
To adjust the levels for the cell identities, you can use the
levels<-
assignment function, for example:levels(tcell)