I am creating a thematic map of percent per year for species of birds. here is the code i have:
tm_shape(grid83)+ tm_fill("trend", title = "Percent change per Year", textNA = "None counted", style="fixed", breaks=c(-Inf, -1.5, -0.25, 0.25, 1.5, Inf), palette = c("red", "orange", "yellow", "turquoise", "blue", "white"))+ tm_borders(NA)+ tm_shape(uscan83)+ # add US and CAN tm_borders()+ tm_layout( "Western Grebe", legend.title.size=1, legend.text.size = 0.6, legend.position = c("left","bottom"), legend.bg.color = "white", legend.digits = 5, legend.bg.alpha = 1)
Currently, all NA values ββare grayed out. I tried changing the color palette:
palette = c("red", "orange", "yellow", "turquoise", "blue", "white"))
but this does not seem to work. NA values ββare still gray. What am I doing wrong?
Thank you very much!
source share