canvas_circlemap {aRtsy}R Documentation

Draw a Circle Map

Description

This function draws a circle map on the canvas. A circle map models the dynamics of a physical system consisting of two rotors or disks, one free to spin, and another one attached to a motor, with a long (weak) spring connecting the two.

Usage

canvas_circlemap(colors, left = 0, right = 12.56, bottom = 0, top = 1,
                 iterations = 10, resolution = 1500)

Arguments

colors

a string or character vector specifying the color(s) used for the artwork.

left

a value specifying the minimum location on the x-axis.

right

a value specifying the maximum location on the x-axis.

bottom

a value specifying the minimum location on the y-axis.

top

a value specifying the maximum location on the y-axis.

iterations

a positive integer specifying the number of iterations of the algorithm.

resolution

resolution of the artwork in pixels per row/column. Increasing the resolution increases the quality of the artwork but also increases the computation time exponentially.

Value

A ggplot object containing the artwork.

Author(s)

Koen Derks, koen-derks@hotmail.com

References

https://en.wikipedia.org/wiki/Arnold_tongue

https://linas.org/art-gallery/circle-map/circle-map.html

See Also

colorPalette

Examples


canvas_circlemap(colors = colorPalette("dark2"))



[Package aRtsy version 0.1.8 Index]