R package to simulate and plot Brownian motion, written to illustrate R package development, as part of the course Advanced Data Analysis.
Install with the devtools package:
devtools::install_github("kbroman/simBrM")
Use simBrM()
to simulate and plotBrM()
to plot the result.
library(simBrM)
x <- simBrM(1000)
plotBrM(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.