Learn R Programming

Sim.DiffProc (version 4.9)

plot2d: Plotting for Class SDE

Description

Generic function for plotting.

Usage

# S3 method for default
plot2d(x, ...)
# S3 method for default
lines2d(x, ...)
# S3 method for default
points2d(x, ...)
# S3 method for default
plot3D(x, display = c("persp","rgl"), ...)

Arguments

x

an object inheriting from class snssde2d, snssde3d, bridgesde2d and bridgesde3d.

display

"persp" perspective or "rgl" plots.

...

other graphics parameters, see par in package "graphics", scatterplot3d in package "scatterplot3d" and plot3d in package "rgl".

Author

A.C. Guidoum, K. Boukhetala.

Details

The 2 and 3-dim plot of class sde.

Examples

Run this code
## Example 1: 
set.seed(1234)

fx <- rep(expression(0),2)
gx <- rep(expression(1),2)

res <- snssde2d(drift=fx,diffusion=gx,N=5000)
plot2d(res,type="l")

Run the code above in your browser using DataLab