SpatialPlot can not plot with manual colors #6083
Answered
by
Secretloong
Secretloong
asked this question in
Q&A
-
When I used older version, my scripts worked OK.
while I used newer version, I got the errors and no manual colors having been transformed to
My scripts:
My errors:
Could you help me to solve this problem? THX! |
Beta Was this translation helpful? Give feedback.
Answered by
Secretloong
Jun 16, 2022
Replies: 1 comment
-
I have resolved this problem.
It's a strange problem, and not elegant. I suggest |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Secretloong
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
I have resolved this problem.
As
ggplot2
said in their scale-manual.r, it's better use a named vector to colors. so I named the my manual color vectorcol
with theIdents()
. then it works OK.It's a strange problem, and not elegant. I suggest
Seurat
could deal with this by default.