StatFields {ggfields} | R Documentation |
Stat method for geom_fields
Description
Prepares data before being handled by geom_fields()
Usage
StatFields
stat_fields(
mapping = NULL,
data = NULL,
geom = "fields",
position = "identity",
na.rm = FALSE,
show.legend = NA,
inherit.aes = TRUE,
...
)
Arguments
mapping |
Set of aesthetic mappings created by |
data |
Can be one of four things:
|
geom |
The layer type for which the data is prepared. In this case |
position |
Position adjustment, either as a string naming the adjustment
(e.g. |
na.rm |
If |
show.legend |
logical. Should this layer be included in the legends?
|
inherit.aes |
If |
... |
Other arguments passed on to |
Format
An object of class StatFields
(inherits from StatSf
, Stat
, ggproto
, gg
) of length 3.
Value
Returns a layer that can be further modified by geom_fields()
.
Author(s)
Pepijn de Vries
Examples
stat_fields()