mapping_spc.Rd
Extract necessary information from the ggplot mappings.
mapping_spc(mapping_plt)
mapping_plt | A |
---|
list
of encodings with their field descriptions
library(ggplot2) p <- ggplot(data = iris, aes(x = Petal.Width, y = Petal.Length)) p <- p + geom_point() mapping_spc(p$mapping)#> $x #> $x$field #> [1] "Petal.Width" #> #> #> $y #> $y$field #> [1] "Petal.Length" #> #>