I am trying to save the dtm generated using plot
command. The dtm
has been generated from las using lidR using this code
dtm1_tin <- rasterize_terrain(las1, res = 1, algorithm = tin())
plot_dtm3d(dtm1_tin, bg = "white")
# Trying to save my plot using
savePlot("dtm1_tin", type = "tiff", device = dev.cur(), restoreConsole = TRUE)
#> Error in savePlot("dtm1_tin", type = "tiff", device = dev.cur(), restoreConsole = TRUE) :
no such device
Looks like you should be able to use the generic
terra::writeRaster
with yourdtm1_tin
object.So: