Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Lines across world map #169

Closed
hadley opened this Issue · 2 comments

2 participants

@hadley
Owner
require(maps)
world <- data.frame(map("world", plot=FALSE)[c("x","y")])
ggplot( world, aes(x=x,y=y)) + geom_path( ) +coord_map()
@kloesing

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)

to

out$x <- rescale(out$x, 0:1, details$x.range, clip = TRUE)
@hadley
Owner

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.

@hadley hadley closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.