Learn R Programming

TaoTeProgramming (version 1.0)

chessboard: Distorted Chessboard

Description

Draw a distorted chessboard.

Usage

chessboard(color = "black", seed = NULL)

Arguments

color
a single color.
seed
an integer giving the argument for set.seed.

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

Run this code
# a specific picture
chessboard(sample(colors(), 1), seed=7)
# different each time
chessboard(sample(colors(), 1))

Run the code above in your browser using DataLab