Advertisement
Guest User

Untitled

a guest
Feb 25th, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. # Create a bouding box
  2. bbox <- neighb@bbox
  3. # Add a margin between the extent of our data the edge of the basemap
  4. sf_bbox <- c(left = bbox[1, 1] - .01, bottom = bbox[2, 1] - .005,
  5. right = bbox[1, 2] + .01, top = bbox[2, 2] + .005)
  6. # General basemap
  7. basemap <- get_stamenmap(
  8. bbox = sf_bbox,
  9. zoom = 13,
  10. maptype = "toner-lite")
  11.  
  12. bmMap <- ggmap(basemap) + mapTheme() +
  13. labs(title="San Francisco basemap")
  14. bmMap
  15. ggsave("plot3_basemap.png", bmMap, width = 6, height = 6, device = "png")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement