Combines multiple patternogram
objects into a single object, binding them by rows and adding an id
column to indicate the origin.
bind_patternogram(..., ids = NULL)
A patternogram
object containing all input objects combined row-wise, with an added id
column indicating their origin
r = terra::rast(system.file("ex/elev.tif", package = "terra"))
r1 = r[r < 340, drop = FALSE]
r2 = r[r >= 340, drop = FALSE]
pr1 = patternogram(r1)
pr2 = patternogram(r2)
pr_all = bind_patternogram(pr1, pr2, ids = c("low", "high"))
plot(pr_all)