R/points.optimalPortfolio.R

`points.optimalPortfolio` <-
function(x, addNames=FALSE, pos=3, colOP=1, pch=1, pchOP=20, col='heatGradient', optPortOnly=FALSE, ...){
	pR <- portReturn(x$model, x$X)
	if(!optPortOnly){
		points(pR, addNames=addNames, pos=pos, col='heatGradient', pch=pch, ...)
	}
	points(x$risk, x$R, col=colOP, pch=pchOP, ...)
}

Try the stockPortfolio package in your browser

Any scripts or data that you put into this service are public.

stockPortfolio documentation built on May 29, 2017, 11:32 a.m.