powered by
Returns a function suitable as the color.palette argument to filled.contour that contains a specified portion of the rainbow.
color.palette
filled.contour
partial.rainbow(start = 0, end = 0.35)
a number giving where the colors should start. Valid numbers range from 0 (red) to 1 (also red).
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.
rainbow
start
end
This function was made to facilitate the construction of contour plots in the alpha.proxy function, but is of general use.
alpha.proxy
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.
# NOT RUN { 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)) # }
Run the code above in your browser using DataLab