powered by
Make a cat plot
catplot(xs, ys, size = 0.1, cat = 1, catcolor = "#000000FF", linecolor = 1, type = "justcats", canvas = c(0, 1.1, 0, 1.1), ...)
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
the plotting area
additional parameters to pass to plot()
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=4, catcolor=c(1,0,1,1))
Run the code above in your browser using DataLab