Description Usage Arguments Value Examples
Rainbows! Even more colors.
1 2 3 | 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))
|
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) |
a rainbow!
1 2 3 4 | 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))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.