plot_graph: Plot a graph.

View source: R/plot_graph.R

plot_graphR Documentation

Plot a graph.

Description

Plot a graph.

Usage

plot_graph(las, graph, graph_color = "white", ...)

Arguments

las

a LAS file.

graph

a graph produced with the knn_graph or delaunay_graph functions.

graph_color

the color of the graph edges to plot.

...

additionnal parameters to pass to the lidR plot function.

Value

plot the graph.

Examples


# 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)


Blecigne/lidUrb documentation built on Feb. 19, 2024, 9:12 a.m.