Extract scales

scale_spc(scale_plt)

Arguments

scale_plt

A list of scales from the ggplot object.

Value

A list of scales that differ from the default scales.

Examples

library(ggplot2) p <- ggplot(data = iris) p <- p + geom_point(aes(x = Petal.Width, y = Petal.Length)) scale_spc(p$scales$scales)
#> list()