add_edge_variable.Rd
Adds a variable called edge to the input data.frame that tells if the observation belongs to the points that lie on the edge of the covered area.
add_edge_variable(coords_df, id_var = "barcodes")
Input data.frame with additional logical variable edge.
library(SPATA2)
data("example_data")
object <- example_data$object_UKF275T_diet
coords_df <-
getCoordsDf(object) %>%
add_edge_variable()
plotSurface(coords_df, color_by = "edge")