Learn R Programming

CatterPlots (version 0.0.2)

morecats: Plot even more cats! In more colors and shapes!

Description

Plot even more cats! In more colors and shapes!

Usage

morecats(obj = NULL, xs, ys, size = 0.1, cat = c(4, 5, 6),
  catcolor = c("#0000FFFF", "#00FF00FF"), linecolor = 1,
  type = "justcats", yshift = 0, xshift = 0, color = TRUE)

Arguments

obj

a catplot object, returned from catplot

xs

a vector of numbers

ys

another vector of numbers

size

the size of the cat (0.1 is a good starting point)

cat

the cat model, 1 through 12

catcolor

a modifier vector to the png matrix (try c(1,0,0,1))

linecolor

color of plotted lines

type

the type of plot ... justcats, or line

yshift

shifts the cat up or down, within the scaled space

xshift

shifts the cat left or right, within the scaled space.

color

whether or not to apply color to image(s)

Value

a cat plot object... to plot more cats.

Examples

Run this code
	x <- -10:10
	y <- -x^2 + 10
	purr <- catplot(xs=x, ys=y, cat=3, catcolor=c(0,1,1,1))
	morecats(purr, -x, -y, cat=c(4,5,6), catcolor=list(c(0,0,1,1),c(0,1,0,1)))

Run the code above in your browser using DataLab