I am trying to create a map using ggplot2 but am having trouble with projections.
world <- map_data("world")
worldmap <- ggplot(world, aes(x=long, y=lat, group=group)) +
geom_path() +
scale_y_continuous(breaks=(-2:2) * 30) +
scale_x_continuous(breaks=(-4:4) * 45)
##The following like produces attached Figure 1
worldmap
##The following like produces attached Figure 2
worldmap+ coord_map()
When I use projections, strange horizontal lines appear. Why is that? I am having similar trouble with a set of chloropleth maps that I am trying to make. With chloropleth maps, I get horizontal bands of colour.
Would be grateful if somebody could point out what am I doing wrong.
Vikas