# NOT RUN {
LASfile <- system.file("extdata", "Megaplot.laz", package="lidR")
las <- readLAS(LASfile)
las <- lasdetectshape(las, shp_plane(k = 15), "Coplanar")
plot(las, color = "Coplanar")
# Drop ground point at runtime
las <- lasdetectshape(las, shp_plane(k = 15), "Coplanar", filter = ~Classification != 2L)
plot(las, color = "Coplanar")
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab