
ma1 = tm_shape(brasil) + tm_fill(col = "red")
ma2 = tm_shape(brasil) + tm_fill(col = "red", alpha = 0.3)
ma3 = tm_shape(brasil) + tm_borders(col = "blue")
ma4 = tm_shape(brasil) + tm_borders(lwd = 3)
ma5 = tm_shape(brasil) + tm_borders(lty = 2)
ma6 = tm_shape(brasil) + tm_fill(col = "red", alpha = 0.3) +
tm_borders(col = "blue", lwd = 3, lty = 2)
tmap_arrange(ma1, ma2, ma3, ma4, ma5, ma6)
legend_title = expression("Area (km"^2*")")
map_brasil1 = tm_shape(brasil) +
tm_fill(col = "AREA_TOT_G", title = legend_title) +
tm_borders()
map_brasil1
tm_shape(brasil) + tm_polygons(col = "cafe")
breaks = c(0, 3, 4, 5) * 10000
tm_shape(brasil) + tm_polygons(col = "cafe", breaks = breaks)
tm_shape(brasil) + tm_polygons(col = "cafe", n = 10)
tm_shape(brasil) + tm_polygons(col = "cafe", palette = "BuGn")
tm_shape(brasil) + tm_polygons(col = "cafe", palette = "Blues")
tm_shape(brasil) + tm_polygons(col = "cafe", palette = "YlOrBr")
tm_shape(brasil) + tm_polygons(col = "cafe", style = "pretty")
tm_shape(brasil) + tm_polygons(col = "cafe", style = "equal")
tm_shape(brasil) + tm_polygons(col = "cafe", style = "quantile")
tm_shape(brasil) + tm_polygons(col = "cafe", style = "jenks")
tm_shape(brasil) + tm_polygons(col = "cafe", style = "cont")
tm_shape(brasil) + tm_polygons(col = "cafe", style = "cat")
map_brasil +