Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. zip state users longitude latitude
  2. 00501 NY 1000 -72.63708 40.92233
  3. 00544 NY 1000 -72.63708 40.92233
  4. 00601 PR 2000 -66.74947 18.1801
  5. 00602 PR 2000 -67.18024 18.36329
  6.  
  7. map<-get_map(location='united states', zoom=4, maptype = "terrain",
  8. source='google',color='color')
  9. ggmap(map) + geom_point(
  10. aes(x=longitude, y=latitude, show_guide = TRUE, colour=users),
  11. data=data, alpha=.5, na.rm = T) +
  12. scale_color_gradient(low="red", high="green")
  13.  
  14. map<-get_map(location='united states', zoom=4, maptype = "terrain",
  15. source='google',color='color')
  16. ggmap(map) + geom_point(
  17. aes(x=longitude, y=latitude, show_guide = TRUE, colour=users),
  18. data=data, alpha=.5, na.rm = T) +
  19. scale_color_gradient(low="red", high="green") +
  20. geom_text(aes(x = longitude, y = latitude, label = as.character(state)),
  21. data = data,inherit.aes = FALSE)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement