Guest User

Untitled

a guest
Mar 20th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. library(ggmap)
  2. library(mapproj)
  3. map <- get_map(location = 'middle east', zoom = 4)
  4. read.table("latlon.txt", header = TRUE) -> tbl
  5. plot<-ggmap(map) + geom_point(aes(x = lon, y = lat), color=tbl$color, size=3, data = tbl) + theme(legend.position = "none")+
  6. #geom_text(aes(label=pop),data=tbl,hjust=0, vjust=0)
  7. ggsave(plot=plot,height=7.5,width=11, filename="f4 map.pdf", useDingbats=FALSE)
  8. plot(plot)
  9.  
  10. map <- get_googlemap(center = 'middle east', zoom = 4,
  11. style = 'feature:administrative.country|element:labels|visibility:off')
  12. plot <- ggmap(map)
  13. print(plot)
Add Comment
Please, Sign In to add comment