Create a new sf layer that auto-maps geometry data
The layer_sf()
function is a variant of layer()
meant to be used by
extension developers who are writing new sf-based geoms or stats.
The sf layer checks whether the data contains a geometry column, and
if one is found it is automatically mapped to the geometry
aesthetic.
layer_sf( geom = NULL, stat = NULL, data = NULL, mapping = NULL, position = NULL, params = list(), inherit.aes = TRUE, check.aes = TRUE, check.param = TRUE, show.legend = NA )
geom |
The geometric object to use display the data |
stat |
The statistical transformation to use on the data for this layer, as a string. |
data |
The data to be displayed in this layer. There are three options: If A A |
mapping |
Set of aesthetic mappings created by |
position |
Position adjustment, either as a string, or the result of a call to a position adjustment function. |
params |
Additional parameters to the |
inherit.aes |
If |
check.aes |
If |
check.param |
If |
show.legend |
logical. Should this layer be included in the legends?
|
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.