layer_sf | R Documentation |
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 to display the data, either as a
|
stat |
The statistical transformation to use on the data for this
layer, either as a |
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 naming the adjustment
(e.g. |
params |
Additional parameters to the |
inherit.aes |
If |
check.aes, check.param |
If |
show.legend |
logical. Should this layer be included in the legends?
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.