Guest User

Untitled

a guest
May 23rd, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. require(marmap)
  2. require(lattice)
  3.  
  4. Bathy2 <- getNOAA.bathy(lon1 = 30, lon2 = 47,
  5. lat1 = -12, lat2 = -28, resolution = 2)
  6. #plot of the area + transect
  7. plot(Bathy2, image=TRUE, land = TRUE, lwd = 0.03,
  8. bpal = list(c(0,max(Bathy2), greys), c(min(Bathy2), 0, blues)))
  9. belt3 <- get.box(Bathy2, x1 = 34, x2 = 46, y1 = -20, y2 = -20, width = 3, col = "red")
  10.  
  11. #3Dplot of the transect
  12. wireframe(belt3, shade = T, zoom = 1.1,
  13. aspect = c(1/4, 0.1),
  14. screen = list(z = -60, x = -55),
  15. par.settings = list(axis.line = list(col = "white")),
  16. par.box = c(col =rgb(0, 0, 0, 0.1)),
  17. xlab="", colorkey = TRUE)
Add Comment
Please, Sign In to add comment