get_geoms_stats | R Documentation |
List the geom and stat combination used by all layers of a plot.
get_geoms_stats(p)
p |
A ggplot object |
A list of lists with a GEOM and STAT character. e.g. list(list(GEOM = "point", STAT = "identity"))
Other functions for checking geoms:
get_geoms()
,
ith_geom_is()
,
ith_geom_stat()
,
ith_geom()
,
uses_geoms()
require(ggplot2)
p <- ggplot(data = mpg, mapping = aes(x = displ, y = hwy)) +
geom_point(mapping = aes(color = class)) +
geom_smooth()
get_geoms_stats(p)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.