Generate grid geometries from well-known geometries
Using wkt_meta() and wkt_coords(), these functions create graphical objects
using the grid package. Vectors that contain geometries of a single dimension
are efficiently packed into a grid::pointsGrob(), grid::polylineGrob(),
or grid::pathGrob(). Vectors with mixed types and nested collections are encoded
less efficiently using a grid::gTree().
wkt_grob( wkt, ..., rule = "evenodd", default.units = "native", name = NULL, vp = NULL ) wkb_grob( wkt, ..., rule = "evenodd", default.units = "native", name = NULL, vp = NULL )
wkt |
A character vector containing well-known text. |
... |
Graphical parameters passed to |
rule |
Use "winding" if polygon rings are correctly encoded with a winding direction. |
default.units |
Coordinate units, which may be defined by the viewport (see
|
name, vp |
Passed to |
grid::grid.newpage()
grid::grid.draw(wkt_grob("POINT (0.5 0.5)", pch = 16, default.units = "npc"))Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.