powered by
Plot more cats!
cats(obj = NULL, xs, ys, size = 0.1, cat = 1, catcolor = "#000000FF", linecolor = 1, type = "justcats")
a catplot object, returned from catplot
a vector of numbers
another vector of numbers
the size of the cat (0.1 is a good starting point)
the cat model, 1 through 12
a modifier vector to the png matrix (try c(1,0,0,1))
color of plotted lines
the type of plot ... justcats, or line
a cat plot object... to plot more cats.
x <- -10:10 y <- -x^2 + 10 purr <- catplot(xs=x, ys=y, cat=3, catcolor=c(0,1,1,1)) cats(purr, -x, -y, cat=2, catcolor=c(0,0,0,1))
Run the code above in your browser using DataLab