Guest User

Untitled

a guest
Nov 22nd, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. #install.packages("ggmap")
  2. #install.packages("gridExtra")
  3.  
  4. library(gridExtra)
  5. library(ggmap)
  6.  
  7. map1 <- get_map("Tashkent", zoom = 11, maptype = "satellite", source = "google")
  8. map2 <- get_map("Tashkent", zoom = 11, maptype = "roadmap", source = "google")
  9. map3 <- get_map("Tashkent", zoom = 11, maptype = "terrain", source = "google")
  10. map4 <- get_map("Tashkent", zoom = 11, maptype = "hybrid", source = "google")
  11.  
  12. plot1 <- ggmap(map1)
  13. plot2 <- ggmap(map2)
  14. plot3 <- ggmap(map3)
  15. plot4 <- ggmap(map4)
  16.  
  17. grid.arrange(plot1, plot2, plot3, plot4, ncol= 2, nrow = 2)
Add Comment
Please, Sign In to add comment