Description Usage Arguments Examples
View source: R/lorenz_attractor.R
Generates data for plotting a Lorenz attractor and stores it in a data frame. The Rcpp implementation is from the blog post Drawing 10 Million Points With ggplot by Antonio Sanchez Chinchon.
1 2 3 4 5 6 7 8 9 10 | lorenz_attractor(
a = 2,
b = 0.7,
c = 26,
x0 = -1,
y0 = 1,
z0 = -1,
dt = 0.01,
n = 10000
)
|
a, b, c |
Parameters |
x0, y0, z0 |
Initial point coordinates |
dt |
Time step |
n |
Number of points to generate |
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.