layer_info {autocogs} | R Documentation |
Data List
layer_info(p, keep = TRUE, ...)
## Default S3 method:
layer_info(p, keep = TRUE, ...)
## S3 method for class 'ggplot'
layer_info(p, keep = TRUE, ...)
p |
plot object |
keep |
boolean vector (size = 1 or length(plot$layers)). Determines if that layer should have cognostics calculated |
... |
parameters passed on to corresponding |
require(ggplot2)
p <- ggplot(iris, aes(Sepal.Length, Sepal.Width)) +
geom_point(data = mpg, mapping = aes(cty, hwy))
layer_info(p)