Description Usage Arguments Value Examples
This function is based on ggplot2::annotate(). The two main differences are: it returns an unevaluated function call rather than a ggproto object; and it can handle limiting annotations to (specified) facet level(s).
1 | make_layer(geom, aes = NULL, params = NULL, facets = NULL)
|
geom |
Geom to annotate, such as "text". |
aes |
Named list of aesthetics with corresponding data values, as in 'list(x = 3, y = 30, label = "A label")'. |
params |
Optional. Named list of parameters for geom, such as 'list(colour = "black")' |
facets |
Optional. Named list of facets; the name is the variable and the value if the level, such as 'list(cyl = 4)'. |
A call
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.