Learn R Programming

aRtsy (version 0.2.4)

canvas_stripes: Draw Stripes

Description

This function creates a brownian motion on each row of the artwork and colors it according to the height of the motion.

Usage

canvas_stripes(
  colors,
  n = 300,
  H = 1,
  burnin = 1
)

Value

A ggplot object containing the artwork.

Arguments

colors

a string or character vector specifying the color(s) used for the artwork.

n

a positive integer specifying the length of the brownian motion (effectively the width of the artwork).

H

a positive value specifying the square of the standard deviation of each step in the motion.

burnin

a positive integer specifying the number of steps to discard before filling each row.

Author

Koen Derks, koen-derks@hotmail.com

See Also

colorPalette

Examples

Run this code
# \donttest{
set.seed(1)

# Simple example
canvas_stripes(colors = colorPalette("random", n = 10))
# }

Run the code above in your browser using DataLab