partial.rainbow {BurStFin} | R Documentation |
Returns a function suitable as the color.palette
argument
to filled.contour
that contains a specified portion of the
rainbow.
partial.rainbow(start = 0, end = 0.35)
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). |
a function similar to rainbow
but with the start
and end
arguments (possibly) changed.
This function was made to facilitate the construction of contour
plots in the alpha.proxy
function, but is of general use.
This help was last revised 2010 January 05.
Burns, Patrick (2003). "Portfolio Sharpening". Working Paper, Burns Statistics http://www.burns-stat.com/.
rainbow
, filled.contour
, alpha.proxy
.
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))