I'm plotting lines on polygons, but when I try to insert the legend the lines look bad, how do I adjust that?
Without the Legend
library("ggplot2")
ggplot(mapa_mg) +
aes(x=long, y=lat, group=group) +
geom_polygon(fill = "white") +
geom_path(color="grey50") +
labs(y="latitude", x="longitude") +
geom_polygon(data=mapa_rod,
mapping=aes(x=long, y=lat, group=group),
color = cores[mapa_rod$idcores],
fill="transparent",
size = 1) +
coord_equal()
Withthecaption
library("ggplot2")
ggplot(mapa_mg) +
aes(x=long, y=lat, group=group) +
geom_polygon(fill = "white") +
geom_path(color="grey50") +
labs(y="latitude", x="longitude") +
geom_polygon(data=mapa_rod,
mapping=aes(x=long, y=lat, group=group),
color = cores[mapa_rod$idcores],
fill="transparent",
size = 1) +
coord_equal()