R/plot.PriceSurface.R

Defines functions plot.PriceSurface

Documented in plot.PriceSurface

plot.PriceSurface <-
function(x, color=divPalette(800, "RdBu"), ...){
	persp(as.numeric(rownames(x)), as.numeric(colnames(x)), x, phi=25, theta=-45, ltheta=120, lphi=0, col=color,  ticktype="detailed", ylab="Strike", xlab="Volatility", zlab="Price", nticks=8, cex.lab=1.4, cex.axis=0.9)
}

Try the LSMonteCarlo package in your browser

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

LSMonteCarlo documentation built on May 2, 2019, 8:55 a.m.