Learn R Programming

mathart (version 0.0.0.9000)

henon_attractor: Henon attractor

Description

Generates data for plotting a Henon 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.

Usage

henon_attractor(a = 1.027, b = 0.3, x0 = 0.1, x1 = 0.1, n = 10000)

Arguments

a, b

Parameters

x0, x1

Initial point coordinates

n

Number of points to generate

Examples

Run this code
# NOT RUN {
henon_attractor()
# }

Run the code above in your browser using DataLab