divergentColors {quickPlot} | R Documentation |
Divergent colour palette
Description
Creates a palette for the current session for a divergent-colour graphic with a non-symmetric range. Based on ideas from Maureen Kennedy, Nick Povak, and Alina Cansler.
Usage
divergentColors(
start.color,
end.color,
min.value,
max.value,
mid.value = 0,
mid.color = "white"
)
## S4 method for signature 'character,character,numeric,numeric'
divergentColors(
start.color,
end.color,
min.value,
max.value,
mid.value = 0,
mid.color = "white"
)
Arguments
start.color |
Start colour to be passed to |
end.color |
End colour to be passed to |
min.value |
Numeric minimum value corresponding to |
max.value |
Numeric maximum value corresponding to |
mid.value |
Numeric middle value corresponding to |
mid.color |
Middle colour to be passed to |
Value
A diverging colour palette.
Author(s)
Eliot McIntire and Alex Chubaty
See Also
Examples
divergentColors("darkred", "darkblue", -10, 10, 0, "white")
[Package quickPlot version 1.0.2 Index]