A layer is a combination of data, stat and geom with a potential position
adjustment. Usually layers are created using geom_*
or stat_*
calls but it can also be created directly using this function.
1 2 3 |
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. |
mapping |
Set of aesthetic mapping created by aes or aes_. |
position |
Position adjustment, either as a string, or the result of a call to a position adjustment function. |
params |
Additional parameters to the geom and stat. |
inherit.aes |
If FALSE, overrides the default aesthetics, rather ehan combining with them. |
subset |
DEPRECATED. Do not use now. |
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.