wkt_plot: Plot well-known geometry vectors

View source: R/plot.R

wkt_plotR Documentation

Plot well-known geometry vectors

Description

These plot functions are intended to help debug geometry vectors, and are not intended to be high-performance.

Usage

wkt_plot(
  x,
  ...,
  asp = 1,
  bbox = NULL,
  xlab = "",
  ylab = "",
  rule = "evenodd",
  add = FALSE
)

wkb_plot(
  x,
  ...,
  asp = 1,
  bbox = NULL,
  xlab = "",
  ylab = "",
  rule = "evenodd",
  add = FALSE
)

Arguments

x

A wkt() or wkb() vector.

...

Passed to plotting functions for features: graphics::points() for point and multipoint geometries, graphics::lines() for linestring and multilinestring geometries, and graphics::polypath() for polygon and multipolygon geometries.

asp, xlab, ylab

Passed to graphics::plot()

bbox

The limits of the plot in the form returned by wkt_ranges().

rule

The rule to use for filling polygons (see graphics::polypath())

add

Should a new plot be created, or should x be added to the existing plot?

Value

x, invisibly

Examples

wkt_plot("POINT (30 10)")


wkutils documentation built on Jan. 22, 2023, 1:50 a.m.