layer_info: Data List

Description Usage Arguments Examples

View source: R/layer_info.R

Description

Data List

Usage

1
2
3
4
5
6
7
layer_info(p, keep = TRUE, ...)

## Default S3 method:
layer_info(p, keep = TRUE, ...)

## S3 method for class 'ggplot'
layer_info(p, keep = TRUE, ...)

Arguments

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 layer_info

Examples

1
2
3
4
require(ggplot2)
p <- ggplot(iris, aes(Sepal.Length, Sepal.Width)) +
  geom_point(data = mpg, mapping = aes(cty, hwy))
layer_info(p)

schloerke/autocog documentation built on May 30, 2021, 5:09 p.m.