plotBM: Plot Brownian motion simulation

Description Usage Arguments Details Value Author(s) Examples

Description

Plot 1-dimension or 2-dimension Brownian motion simulation path

Usage

1
plotBM(x, type = "l", pointcolor = c("purple", "blue"), cex = 2, ...)

Arguments

x

A vector or a matrix of Brownian motion path

type

Plotting type (line/points/etcs) which is passed to plot() function

pointcolor

Colors of starting and ending points

cex

Points size for the starting and ending points

...

Other parameters passed to plot() function

Details

Plot 1-dimension or 2-dimension Brownian motion simulation path

Value

Brownina motion simulation path figure

Author(s)

Ye Zheng

Examples

1
2
x <- sim1dBM(1000, 2)
plotBM(x)

yzheng74/brownianMotion documentation built on May 4, 2019, 8:47 p.m.