0

My data frame looks like that:

Sho        lat     lon       autoroute
1000001 46.20114 5.19791         0
1000002 46.21842 5.22767         1
1000004 46.18836 5.24447         0
1000006 46.20754 5.23758         1
1000007 46.20105 5.24891         0

I'm runnig the next code to graph the coordinates:

library(ggmap)
basec$autoroute <- as.factor(basec$autoroute)
cntr <- c(1.99, 46.95)
map <- get_googlemap(location = 'France',center=cntr, zoom = 6, maptype ="roadmap" )
mapPoints <- ggmap(map) +
             geom_point(aes(x = lon, y = lat, color = autoroute), data = basec,
                        size = 1, alpha = 0.5) + 
             scale_colour_manual(values = c("#00ffff","red")) +
             theme(legend.position = "none") +
             labs(x = "Longitude", y = "Latitude")
mapPoints

And I have:

enter image description here

There is a way to only show France? and there is a way to eliminate the green parts? I just need to show the main roads of France and the points in the map.

jazzurro
  • 23,179
  • 35
  • 66
  • 76
Jeisson
  • 25
  • 8
  • you could try to add to your code... source="osm", maptype ="roadmap"... – MLavoie Mar 19 '16 at 23:09
  • 2
    You have a raster map. If you want to trim the image, [this question](http://gis.stackexchange.com/questions/61243/clipping-a-raster-in-r) may be helpful. I would rather use GADM data for France and draw a map and then add geom_point() – jazzurro Mar 20 '16 at 00:44

0 Answers0