heat.colorsx | R Documentation |
Returns a color vector of heat colors.
heat.colorsx(
x,
h = 1/6,
v = 1,
start = 0,
end = 1,
clamp = NULL,
breakpoint = 0.75,
flip = FALSE,
alpha = 1,
...
)
x |
is a numeric object to which rainbow colors combined with lightening and darkening should be matched. |
h |
is the value hue at the end point of the heat color vector, defaulted to 1/6 to move from red to yellow. |
v |
is the value (lightness) of the colors. |
start |
and 'end' are the start and end colors, given as values in [0,1]. |
breakpoint |
is the breakpoint between 0 and 1 where the color vector turns at white. |
flip |
is true if the color scale should be reversed. |
alpha |
is the transparency. |
... |
methods passed on to sub-functions (not used, but allowing for unused arguments). |
## Not run:
x=runif(1000)
pp(1,2)
plot(x, pch=".", cex=30, col=heat.colorsx(x))
plot(x, pch=".", cex=30, col=heat.colorsx(x, flip=TRUE))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.