plot_spirograph: Make spirographs!

View source: R/plot_misc.R

plot_spirographR Documentation

Make spirographs!

Description

Taken (with modifications) from: http://menugget.blogspot.com/2012/12/spirograph-with-r.html#more A positive value for 'B' will result in a epitrochoid, while a negative value will result in a hypotrochoid.

Usage

plot_spirograph(
  radius_a = 1,
  radius_b = -4,
  dist_bc = -2,
  revolutions = 158,
  increments = 3160,
  center_a = list(x = 0, y = 0)
)

Arguments

radius_a

The radius of the primary circle.

radius_b

The radius of the circle travelling around a.

dist_bc

A point relative to the center of 'b' which rotates with the turning of 'b'.

revolutions

How many revolutions to perform in the plot

increments

The number of radial increments to be calculated per revolution

center_a

The position of the center of 'a'.

Value

something which I don't yet know.


elsayed-lab/hpgltools documentation built on May 9, 2024, 5:02 a.m.