Create graphical objects

geo_grob(
  x,
  ...,
  rule = "evenodd",
  default.units = "native",
  name = NULL,
  vp = NULL
)

# S3 method for default
geo_grob(
  x,
  ...,
  rule = "evenodd",
  default.units = "native",
  name = NULL,
  vp = NULL
)

# S3 method for wk_wkt
geo_grob(
  x,
  ...,
  rule = "evenodd",
  default.units = "native",
  name = NULL,
  vp = NULL
)

# S3 method for wk_wkb
geo_grob(
  x,
  ...,
  rule = "evenodd",
  default.units = "native",
  name = NULL,
  vp = NULL
)

# S3 method for wk_wksxp
geo_grob(
  x,
  ...,
  rule = "evenodd",
  default.units = "native",
  name = NULL,
  vp = NULL
)

# S3 method for geovctrs_xy
geo_grob(
  x,
  ...,
  rule = "evenodd",
  default.units = "native",
  name = NULL,
  vp = NULL
)

# S3 method for geovctrs_segment
geo_grob(
  x,
  ...,
  rule = "evenodd",
  default.units = "native",
  name = NULL,
  vp = NULL
)

# S3 method for geovctrs_rect
geo_grob(
  x,
  ...,
  rule = "evenodd",
  default.units = "native",
  name = NULL,
  vp = NULL
)

Arguments

x

A geometry-like object, or one that can be coerced to a geometry-like object using as_geovctr().

...

Graphical parameters passed to grid::gpar(). These are recycled along the input. Dynamic dots (e.g., !!!) are supported.

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 grid::unit()). Defaults to native.

name

Passed to grid::pointsGrob(), grid::polylineGrob(), grid::pathGrob(), or grid::gTree() depending on the types of geometries in the input.

vp

Passed to grid::pointsGrob(), grid::polylineGrob(), grid::pathGrob(), or grid::gTree() depending on the types of geometries in the input.

Value

A grid graphical object

Examples

grid::grid.newpage() grid::grid.draw( geo_grob("POINT (0.5 0.5)", col = "red", pch = 16, default.units = "npc") )