plot_graph | R Documentation |
Plot a graph.
plot_graph(las, graph, graph_color = "white", ...)
las |
a LAS file. |
graph |
a graph produced with the |
graph_color |
the color of the graph edges to plot. |
... |
additionnal parameters to pass to the lidR |
plot the graph.
# import data
file = system.file("extdata", "tree_no_leaves.las", package="lidUrb")
las = lidR::readLAS(file)
# build a knn graph
KNN = lidUrb::knn_graph(las, k = 5L)
# plot the graph
lidUrb::plot_graph(las = las, graph = KNN)
# change the size of the nodes
lidUrb::plot_graph(las = las, graph = KNN, size = 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.