Structural form requires only tables 'object' and 'vertex'.
Minimal columns is x,y but can be grouped by path_ for separate paths, then subobject_ and object_ for full polygon support.
PATH0(x, ...)# S3 method for default
PATH0(x, ...)
# S3 method for PATH0
PATH0(x, ...)
PATH0_from_df(
x,
...,
path_ = "path_",
object_ = "object_",
subobject_ = "subobject_",
x_ = "x",
y_ = "y"
)
PATH0 model with tables 'object' and 'vertex'
data frame with at least x, y columns
ignored
path identifier, these should identify individual paths
object identifier (like group in ggplot)
subobject identifier (like polygon_id with multipolygons in sfheaders)
optional name for x column (assumed to be x)
optional name for x column (assumed to be y)
This function exists as a special-case for non-format input for PATH0()
. It's expected there
are columns x, y, and optionally object_, subobject_, and path_. These correspond to
names in sfheaders, multipolygon_id, polygon_id, and linestring_id. (subobject is optional if
not multipolygon).
(p <- PATH0(minimal_mesh))
p$object$topology_
PATH0_from_df(data.frame(x = runif(10), y = runif(10)))
Run the code above in your browser using DataLab