butterflies: Draw butterflies

Description Usage Arguments Value Side effects References See Also Examples

Description

Draw one butterfly, or multiple butterflies.

Usage

1
2
3
butterflies(num = c(100, 10), scale = c(0.03, 0.1), 
   color = grep("^gray", colors(), value = TRUE), seed = NULL)
butterfly(loc, color, scale = 0.1, rand = 0.1)

Arguments

num

a vector giving the number of butterflies to draw on each scale.

scale

the scales at which to draw butterflies.

color

colors of the butterflies.

seed

an integer giving the argument for set.seed.

loc

length two vector giving the location of a single butterfly.

rand

control for how spreadout the wings can be.

Value

nothing useful.

Side effects

create a plot on the current graphics device, and modify the random seed.

References

http://www.burns-stat.com/documents/books/tao-te-programming/

See Also

canvas, set.seed.

Examples

1
2
3
4
# a specific picture
butterflies(color=colors(), seed=7)
# different each time
butterflies(color=colors())

TaoTeProgramming documentation built on May 1, 2019, 6:47 p.m.