# NOT RUN {
LASfile <- system.file("extdata", "Topography.laz", package="lidR")
las = readLAS(LASfile, filter = "-keep_xy 273450 273600 5274450 5274600")
dtm = grid_terrain(las, algorithm = tin())
ttops <- find_trees(las, lmf(ws = 5))
plot_dtm3d(dtm)
x = plot(las)
add_dtm3d(x, dtm)
add_treetops3d(x, ttops)
# }
# NOT RUN {
library(magrittr)
plot(las) %>% add_dtm3d(dtm) %>% add_treetops3d(ttops)
# }
Run the code above in your browser using DataLab