Check if input is a SpatRaster or PackedSpatRaster and convert to matrix if it is
.is(r)
Add the following code to your website.
REMOVE THIS Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.