butterfly {ipsRdbs}R Documentation

Draws a butterfly as on the front cover of the book

Description

Draws a butterfly as on the front cover of the book

Usage

butterfly(color = 2, a = 2, b = 4)

Arguments

color

This is the color to use in the plot. It can take any value that R can use for color, e.g. 1, 2, "blue" etc.

a

Parameter controlling the shape of the butterfly

b

Second parameter controlling the shape of the butterfly

Value

No return value, called for side effects. It generates a plot whose colour and shape are determined by the supplied parameters.

Examples

butterfly(color = 6)
old.par <- par(no.readonly = TRUE)
par(mfrow=c(2, 2))
butterfly(color = 6)
butterfly(a=5, b=5, color=2)
butterfly(a=10, b=1.5, color = "seagreen")
butterfly(a=20, b=4, color = "blue")
par(old.par) # par(mfrow=c(1, 1))

[Package ipsRdbs version 1.0.0 Index]