50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

CatterPlots (version 0.0.2)

rainbowCats: Rainbows! Even more colors.

Description

Rainbows! Even more colors.

Usage

rainbowCats(xs, ys, ptsize = 0.1, yspread = 0.1, xspread = 0.1,
  cat = 11, catshiftx = 0, catshifty = 0, spar = NA, canvas = c(-0.5,
  1.5, -1, 1.5))

Arguments

xs

a vector of numbers

ys

another vector of numbers

ptsize

control the size.

yspread

the vertical spread of the rainbow

xspread

the horizontal spread of rainbow particles

cat

what cat shall make thine rainbow? nyan is 11

catshiftx

get your cat connected to the rainbow!

catshifty

get your cat connected to the rainbow!

spar

the smoothness of the rainbow.

canvas

you are probably going to want to zoom in and out (x1,x2,y1,y2)

Value

a rainbow!

Examples

Run this code
# NOT RUN {
x <- -10:10
y <- -x^2 + 10
rainbowCats(x, y, yspread=0.05, xspread=0.05, ptsize=2,
            catshiftx=0.5, catshifty=-0.2, canvas=c(-0.5,1.5,-1,1.5))
# }

Run the code above in your browser using DataLab