This function uses geom_sf()
, unless overridden by the geom argument.
Requires the ggplot2
package.
Usage
# S3 method for sf
gg(data, mapping = NULL, ..., geom = "sf")
Arguments
- data
An
sf
object.- mapping
Default mapping is
ggplot2::aes(geometry = ...)
, where the geometry name is obtained fromattr(data, "sf_column")
. This is merged with the user supplied mapping.- ...
Arguments passed on to
geom_sf
orgeom_tile
.- geom
Either "sf" (default) or "tile". For "tile", uses
geom_tile(..., stat = "sf_coordinates")
, intended for converting point data to grid tiles with thefill
aesthetic, which is by default set to the first data column.
See also
Other geomes for spatial data:
gg.SpatRaster()
,
gg.SpatialGridDataFrame()
,
gg.SpatialLines()
,
gg.SpatialPixelsDataFrame()
,
gg.SpatialPixels()
,
gg.SpatialPoints()
,
gg.SpatialPolygons()
,
gg()
,
gm()