## Random walk on the 2D plane: for each point (x, y), x =
## x + rnorm(1) and y = y + rnorm(1).
library(plot3D)
library(animation)
library(EMMAgeo)
library(shiny)
library(shape)
library(limSolve)
library(GPArotation)
library(grainsize)
library(fields)
library(maps)
library(spam)
ani.options(interval = 0.05, nmax = 30)
par(mar = c(3, 3, 2, 0.5), mgp = c(2, 0.5, 0), tcl = -0.3,
cex.axis = 0.8, cex.lab = 0.8, cex.main = 1)
brownian.motion(pch = 21, cex = 5, col = "red", bg = "yellow",
main = "Demonstration of Brownian Motion")
## R version 3.3.1 (2016-06-21)
## Platform: i386-w64-mingw32/i386 (32-bit)
## Other packages: plot3D 1.1, animation 2.4, EMMAgeo 0.9.4,
## shiny 0.14, shape 1.4.2, limSolve 1.5.5.1, GPArotation
## 2014.11-1, grainsize 0.1.1, fields 8.4-1, maps 3.1.0, spam
## 1.3-0