View source: R/geom-defaults.R
get_geom_defaults | R Documentation |
Resolve and get geom defaults
get_geom_defaults(geom, theme = theme_get())
geom |
Some definition of a geom:
|
theme |
A |
A list of aesthetics
# Using a function
get_geom_defaults(geom_raster)
# Using a layer includes static aesthetics as default
get_geom_defaults(geom_tile(fill = "white"))
# Using a class name
get_geom_defaults("density_2d")
# Using a class
get_geom_defaults(GeomPoint)
# Changed theme
get_geom_defaults("point", theme(geom = element_geom(ink = "purple")))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.