# \donttest{
# Load example LAS file
LASfile <- system.file("extdata", "ALS_Clip.laz", package="spanner")
las <- readLAS(LASfile)
# Create basic rotation GIF with attribute coloring
las_colored <- colorize_las(las, method="attr", attribute_name="Z")
create_rotation_gif(las_colored, output_path=tempfile(fileext = ".gif"))
# High quality with specific settings
create_rotation_gif(las_colored,
output_path=tempfile(fileext = ".gif"),
duration=15,
rpm=10,
background="black",
show_axis=FALSE,
show_legend=FALSE)
# Rotate around X axis for side-to-side view
create_rotation_gif(las_colored, output_path=tempfile(fileext = ".gif"), axis="x")
# }
Run the code above in your browser using DataLab