Skip to content

Custom color scheme for spatial plot does not seem to work #4290

Answered by timoast
smk5g5 asked this question in Q&A
Discussion options

You must be logged in to vote

cols entry from the SpatialPlot() documentation:

Vector of colors, each color corresponds to an identity class. This may also be a single character or numeric value corresponding to a palette as specified by brewer.pal.info. By default, ggplot2 assigns colors

So cols = c("grey88", "firebrick4") is not a valid parameter choice here for plotting a feature

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by timoast
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants