partial.rainbow {BurStFin} | R Documentation |
Create Palette Function for Part of Rainbow
Description
Returns a function suitable as the color.palette
argument
to filled.contour
that contains a specified portion of the
rainbow.
Usage
partial.rainbow(start = 0, end = 0.35)
Arguments
start |
a number giving where the colors should start. Valid numbers range from 0 (red) to 1 (also red). |
end |
a number giving where the colors should end. Valid numbers range from 0 (red) to 1 (also red). |
Value
a function similar to rainbow
but with the start
and end
arguments (possibly) changed.
Details
This function was made to facilitate the construction of contour
plots in the alpha.proxy
function, but is of general use.
Revision
This help was last revised 2010 January 05.
References
Burns, Patrick (2003). "Portfolio Sharpening". Working Paper, Burns Statistics http://www.burns-stat.com/.
See Also
rainbow
, filled.contour
, alpha.proxy
.
Examples
ap1 <- alpha.proxy(cor.man=seq(0, .3, len=50),
vol.man=seq(.15, .25, leng=60), plot=FALSE)
filled.contour(ap1, color.palette=partial.rainbow(start=.05, end=.3))
[Package BurStFin version 1.3 Index]