remove_color_unless_equal | R Documentation |
Remove colour mapping unless found in select mapping keys
remove_color_unless_equal(mapping, to = c("x", "y"))
mapping |
output of |
to |
set of mapping keys to check |
Aes mapping with colour mapping kept only if found in selected mapping keys.
mapping <- aes(x = sex, y = age, colour = sex)
mapping <- aes(x = sex, y = age, colour = region)
remove_color_unless_equal(mapping)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.