world <- data.frame(map("world", plot=FALSE)[c("x","y")])
ggplot( world, aes(x=x,y=y)) + geom_path( ) +coord_map()
Here's a workaround that looks like it fixes the problem, but that may cover the real bug or even introduce new problems. In the transform() function of CoordMap, change
out$x <- rescale(out$x, 0:1, details$x.range, clip = FALSE)
out$x <- rescale(out$x, 0:1, details$x.range, clip = TRUE)
That sounds like a great feature, but unfortunately we don't currently have the development bandwidth to support it. If you'd like to submit a pull request that implements this feature, please follow the instructions in the development vignette.