easyart: Create patterns on a circle using the times table

View source: R/easyart.R

easyartR Documentation

Create patterns on a circle using the times table

Description

This function draws a circle, places 1000 equi-distanced dots on it and then connects them by multiples of n. The patterns are repeated after n=200 such that for every n, n+200 will generate an identical pattern. For the math behind these patterns, watch this video on YouTube: https://youtu.be/qhbuKbxJsk8

Usage

easyart(n = 2, mycolor = "deeppink", m = 0, printall = 0)

Arguments

n

Can be a positive integer, or even a real number - defaults to n = 2. Choosing n=0 shows a demo of 23 interesting patterns ant their n values.

mycolor

Any color name in R. To get color names try colors() in the Console. defaults to mycolor = "deeppink"

m

optional argument that defaults to 0. If a positive non-zero value is provided for m, all patterns from n=1 upto n=m will be displayed. For example, setting m=10 displays all the patterns from n=1 to n=10, effectively ignoring the values for n and mycolor.")

printall

optional argument that defaults to 0. If printall=1, all patterns from n=1 upto n=200 will be saved in a pdf file and the details will be shared in the Console.")

Examples

## Not run: 
easyart(n=51)
easyart(n=0)
easyart(m=5)

## End(Not run)

1moein/listentodata documentation built on Nov. 14, 2024, 5:35 p.m.