Learn R Programming

rtemis (version 0.79)

mplot3.harmonograph: Plot a harmonograph

Description

Plot a [harmonograph](https://en.wikipedia.org/wiki/Harmonograph)

Usage

mplot3.harmonograph(steps = seq(1, 500, by = 0.01), seed = NULL,
  col = "white", alpha = 0.2, bg = "black", lwd = 1, text = NULL,
  text.side = 1, text.line = -1, text.adj = 0, text.padj = 0,
  text.col = col, mar = c(0, 0, 0, 0), oma = c(0, 0, 0, 0),
  xlim = NULL, ylim = NULL, new = FALSE, par.reset = TRUE)

Arguments

steps

Float, vector

seed

Integer

col

Line color. Default = "white"

alpha

Alpha for line color col. Default = .2

bg

Color for background. Default = "black"

lwd

Float: Line width

text

String: Text you want printed along with the harmonograph. Default = NULL

text.side

Integer 1, 2, 3, 4: side argument for mtext

text.line

Float: line argument for mtext

text.adj

Float: adj argument for mtext

text.padj

Float: padj argument for mtext

text.col

Color: Text color. Default is same as col

mar

Float vector, length 4: Plot margins. (par's mar argument) Default = c(0, 0, 0, 0)

par.reset

Logical. If TRUE, reset par before exit

Details

Unless you define a seed, each graph will be random. Try different seeds if you want to reproduce your graphs. Some seeds to try: 9, 17, 26, 202, 208, ...