I'm making a map of flood zones that ends up with additional lines I don't want. Here is the code:
tmap_mode("view")
tm_shape(floodplot) +
tm_polygons(
col = "Risk Level",
alpha = 0.9,
palette = colors)
) +
tm_layout(
title = "What is the risk of flooding in Robeson County?",
legend.position = c("right", "top"),
legend.text.size = 12
) +
tm_style(style = "classic")
And here is the map: enter image description here
The horizontal and vertical lines are the census tracts, but I don't want them on this map. The floodplot data has a geometry column as well as a SHAPE_Leng and SHAPE_Area column, which I assume are causing the issue.
I tried using some arguments in tm_lines, but it didn't work. Doesn't actually seem like any of the lines after the polygons layer is changing the map, but I'm fine with that if I can get rid of the census tract lines.
As a temporary solution I set lwd = 0, but that of course removes all the lines. The person who showed me the data said something about dissolving the polygons, but I'm not sure how to do that.
Thank you!