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 for this layer.
When using a
|
stat |
The statistical transformation to use on the data for this layer.
When using 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 |
A position adjustment to use on the data for this layer. This
can be used in various ways, including to prevent overplotting and
improving the display. The
|
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.