![](../logo.png)
Fractals
fractals.Rd
This function generates a generative art ggplot object using fractal patterns. Inspired by https://www.r-bloggers.com/2010/08/fractals-in-r/
Usage
fractals(
N = 25,
col_palette = MetBrewer::met.brewer("Demuth", n = 25),
shift = 0,
left = -1,
right = 1,
y_param = 3,
resolution = 0.005,
dist_max = 4
)
Arguments
- N
Number of iterations. Default 25.
- col_palette
Vector of colours of length >= N. Default MetBrewer::met.brewer("Demuth", n = 25).
- shift
Offset of y-values. Default 0.
- left
Start rangle of x-axis. Default -1.
- right
End range of x-axis. Default 1.
- y_param
Rate of y growth. Default 3.
- resolution
Resolution of grid. Default 0.005.
- dist_max
Size of center area. Default 4.