options(par.ask.default = FALSE) example(persp3D) example(surf3D) example(slice3D) example(scatter3D) example(segments3D) example(image2D) example(image3D) example(contour3D) example(colkey) example(jet.col)Karline Soetaert 3 example(perspbox) example(mesh) example(trans3D) example(plot.plist) example(ImageOcean) example(Oxsat)
par(mfrow = c(1, 1)) image2D(z = Oxsat$val[, , 1], x = Oxsat$lon, y = Oxsat$lat, main = "surface oxygen saturation data 2005", NAcol = "black", clab = c("","","%")) help(Oxsat) # images at first 9 depths - use subset to select them image2D(z = Oxsat$val, subset = 1:9, x = Oxsat$lon, y = Oxsat$lat, margin = c(1, 2), NAcol = "black", xlab = "longitude", ylab = "latitude", zlim = c(0, 115), main = paste("depth ", Oxsat$depth[1:9], " m"), mfrow = c(3, 3)) # images at latitude - depth section - increase resolution z <- Oxsat$val[, Oxsat$lat > - 5 & Oxsat$lat < 5, ] image2D(z = z, x = Oxsat$lon, y = Oxsat$depth, margin = c(1, 3), NAcol = "black", resfac = 3, ylim = c(5000, 0)) # show position of transects image2D(z = Oxsat$val[ , ,1], x = Oxsat$lon, y = Oxsat$lat, NAcol = "black") abline(h = Oxsat$lat[Oxsat$lat > - 5 & Oxsat$lat < 5])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.