[R] 3D Black-Scholes Graph Help!

Berend Hasselman bhh at xs4all.nl
Tue Mar 13 21:49:40 CET 2012


On 13-03-2012, at 21:40, David Winsemius wrote:

> 
> On Mar 13, 2012, at 4:24 PM, Anna Dunietz wrote:
> 
>> Hello all!
>> 
>> I would like to create a 3d plot, with the option price explained by the underlying price and time.  Unfortunately, I can't quite get it to work.  I would very much appreciate your help!
>> 
> 
> The usual problem with lattice calls that you "can't quite get ... to work" is failure to read the R-FAQ ( or the help(lattice) page) where it is explained that you need to print() the function result. At the moment my R-machine is tied up with a long process but try wrapping print() around that wireframe call.
> 
There is an error message in the actual plot.

Error using packet 1.
NAs not allowed in subscripted assignments.

Berend



More information about the R-help mailing list