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))

BurStFin documentation built on May 19, 2017, 8:40 p.m.

Search within the BurStFin package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.