partial.rainbow: Create Palette Function for Part of Rainbow

Description Usage Arguments Value Details Revision References See Also Examples

Description

Returns a function suitable as the color.palette argument to filled.contour that contains a specified portion of the rainbow.

Usage

1
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

1
2
3
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))

wangzhishi/test documentation built on Oct. 29, 2020, 2:45 a.m.