Draws segments coloured by feature membership.
Usage
# S3 method for class 'wkpool'
plot(x, col = NULL, add = FALSE, ...)Arguments
- x
A wkpool object.
- col
Colour(s) for segments. If
NULL(default), segments are coloured by feature using a built-in palette.- add
Add to the current plot?
- ...
Further arguments passed to
plot.default()(ignored whenadd = TRUE).
Examples
x <- wk::as_wkb(c(
"POLYGON ((0 0, 1 0, 1 1, 0 1, 0 0))",
"POLYGON ((1 0, 2 0, 2 1, 1 1, 1 0))"
))
pool <- establish_topology(x)
plot(pool)