wkb_draw_points {wkutils} | R Documentation |
Draw well-known geometries
Description
These functions send well-known geometry vectors to a
graphics device using graphics::points()
,
graphics::lines()
, and graphics::polypath()
. These are
minimal wrappers aimed at developers who need to visualize
test data: they do not check geometry type and are unlikely
to work with vectorized graphical parameters in ...
. Use
the wk*_plot_new()
functions to initialize a plot using the
extent of all coordinates in the vector.
Usage
wkb_draw_points(wkb, ...)
wkt_draw_points(wkt, ...)
wkb_draw_lines(wkb, ...)
wkt_draw_lines(wkt, ...)
wkb_draw_polypath(wkb, ..., rule = "evenodd")
wkt_draw_polypath(wkt, ..., rule = "evenodd")
wkb_plot_new(
wkb,
...,
asp = 1,
xlab = "",
ylab = "",
main = deparse(substitute(wkb))
)
wkt_plot_new(
wkt,
...,
asp = 1,
xlab = "",
ylab = "",
main = deparse(substitute(wkt))
)
Arguments
wkb |
A |
... |
Passed to |
wkt |
A character vector containing well-known text. |
rule |
Passed to |
asp , xlab , ylab , main |
Passed to |
Value
The input, invisibly
Examples
x <- "POLYGON ((0 0, 10 0, 10 10, 0 10, 0 0))"
wkt_plot_new(x)
wkt_draw_polypath(x, col = "grey90")
wkt_draw_lines(x, col = "red")
wkt_draw_points(x)
[Package wkutils version 0.1.3 Index]