When using the UMAPPlot function to draw a plot, the background color of the label box does not match the clustering color of split.by. How can I correct this error?
code:
library('RColorBrewer')
pal2 <- c(brewer.pal(8, "Set1"))
UMAPPlot(pbmc,label = TRUE, repel = T,cols=pal2,label.box=T, label.size=4,split.by = 'orig.ident')
When using the UMAPPlot function to draw a plot, the background color of the label box does not match the clustering color of split.by. How can I correct this error? code: library('RColorBrewer') pal2 <- c(brewer.pal(8, "Set1")) UMAPPlot(pbmc,label = TRUE, repel = T,cols=pal2,label.box=T, label.size=4,split.by = 'orig.ident')