Remove colour mapping unless found in select mapping keys
Source:R/gg-plots.R
remove_color_unless_equal.RdRemove colour mapping unless found in select mapping keys
Usage
remove_color_unless_equal(mapping, to = c("x", "y"))Arguments
- mapping
output of
ggplot2::aes(...)- to
set of mapping keys to check