Rainbows! Even more colors.
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))
a vector of numbers
another vector of numbers
control the size.
the vertical spread of the rainbow
the horizontal spread of rainbow particles
what cat shall make thine rainbow? nyan is 11
get your cat connected to the rainbow!
get your cat connected to the rainbow!
the smoothness of the rainbow.
you are probably going to want to zoom in and out (x1,x2,y1,y2)
a rainbow!
# 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