

Theme(axis.line = element_blank(), axis.text = element_blank(),Īxis.ticks = element_blank(), axis.title = element_blank()) + Geom_sf(mapping = aes(fill = quadrant)) + Names(colors) <- c("Alto-Alto", "Bajo-Bajo", "Bajo-Alto", "Alto-Bajo", "No significativo") # I don't include the basemap or the central polygon - just for the exampleĬolors <- c("red", "blue", rgb(0,0,1,alpha=0.4), rgb(1,0,0,alpha=0.4), "white") Tm_layout(main.title = "Concentración de la renta por\nsecciones censales 2019",

Tm_credits("Fuente: INE, Colaboradores de OpenStreetMap",

Labels = c("No significativo", "Alto-Alto","Bajo-Bajo","Bajo-Alto","Alto-Bajo"), title="")+
#Palette sans family code
Here's the code I'm using for each version and the results. The column "quadrant" has the LISA categories. The problem is that it does not match the colour to the quadrant but apparently it assigns a colour to each variable at random. I'm trying to make a LISA plot (checking income concentration by census tract in a rural region in Spain) in, though.
