library(anglr)
dem <- gebco
mesh <- as.mesh3d(dem, triangles = FALSE)
mesh$material$color <- colourvalues::colour_values(mesh$vb[3, ]); mesh$meshColor <- "vertices"
plot3d(mesh)
rgl::aspect3d(1, 1, .1)
## surface3d way
library(raster) ## don't @me give me a reprex with x, y vectors and a z matrix ;)
z <- t(as.matrix(dem))
x <- xFromCol(dem)
y <- yFromRow(dem)
surface3d(x, y, z, col = colourvalues::colour_values(z, "magma"))
Created
May 23, 2020 03:30
-
-
Save mdsumner/75bbdd7aea552d8843866ccbadd63a2b to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
pixel vs. point