Add a Grain to the Closest Branch

add_grain(panicle_graph, new_vert = numeric(2))

Arguments

panicle_graph

A panicle `tidygraph` object

new_vert

Numeric vector that stores the coordinates of the new grain in format `c(x, y)`