powered by
Multi-cat! More cats. More colors.
multicat(xs, ys, size = 0.1, cat = c(1, 2), 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)
a vector of cats
a list of modifier vectors 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 <- multicat(xs=x, ys=y, cat=c(1,2,3), catcolor=list(c(1,1,0,1),c(0,1,1,1)))
Run the code above in your browser using DataLab