Monterey Bay in absolute coordinates X, Y, Z (metres) with Natural Earth coastline added (+proj=lcc +lon_0=-122 +lat_0=36.45 +lat_1=36.7 +lat_2=37.2 +datum=WGS84).
Here's the same scene using plot_3d and indexing in the NE line in matrix index space.
Working code example is in /data-raw/monterey_bay_dem.R and will download the file locally into data-raw/.
Some challenges:
rgl.surface
with its X-Z-Y convention (affects light3d and aspect3d usage)Matrix orientation: t(raster) is different from image() as well) though this works with modifying the data further by caputuring the rayshader output with brick() to write to PNG.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.