Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. baseInset = get_map(location=c(-160.8,18.5,-154.625,22.5), zoom=8, maptype="terrain")
  2.  
  3. mapInset<-ggmap(baseInset2)
  4.  
  5. Inset <- mapInset
  6. + geom_point(data=CoordInset, aes(x=-Long, y=Lat, fill=Type, shape=Type), color="black", cex=1.4, show.legend=FALSE)
  7. + scale_fill_manual(values=c("red", "blue"), labels=c("Molokaiense (not geo-referenced)", "Oahuense (not geo-referenced)"))
  8. + scale_shape_manual(values = c(21,23), labels=c("Molokaiense (not geo-referenced)", "Oahuense (not geo-referenced)"))
  9. + geom_polygon(data=CoordInset, aes(x = Long, y = Lat, group = Type))
  10. + theme(panel.border = element_rect(fill=NA, colour = "black", size=1), plot.margin = unit(c(0.3, 0.3, -1.7, -0.2), 'lines'), axis.line = element_blank(), axis.text.x = element_text(angle=45, hjust=0.9, vjust=2.2, size=8), axis.ticks.length=unit(-0.15,"cm"), axis.text.y = element_text(size=8, margin = margin(r = -18)))
  11.  
  12. Long Lat Type
  13.  
  14. 1 155.2000 19.50000 Not geo-referenced
  15. 2 155.2000 19.51600 Not geo-referenced
  16. 3 155.3433 19.67571 Not geo-referenced
  17. 4 155.4000 19.80000 Not geo-referenced
  18. 5 155.4483 19.76015 Not geo-referenced
  19. 6 155.5000 19.90000 Not geo-referenced
  20. 7 155.5000 19.80000 Not geo-referenced
  21. 8 155.6000 20.00000 Not geo-referenced
  22. 9 155.6000 19.80000 Not geo-referenced
  23.  
  24. Scale for 'y' is already present. Adding another scale for 'y',
  25. which will replace the existing scale.
  26. Scale for 'x' is already present. Adding another scale for 'x',
  27. which will replace the existing scale.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement