Learn R Programming

CatterPlots (version 0.0.2)

catplot: Make a cat plot

Description

Make a cat plot

Usage

catplot(xs, ys, size = 0.1, cat = 1, catcolor = "#000000FF",
  linecolor = 1, type = "justcats", canvas = c(0, 1.1, 0, 1.1), ...)

Arguments

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

canvas

the plotting area

...

additional parameters to pass to plot()

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))
	cats(purr, -x, -y, cat=4, catcolor=c(1,0,1,1))

Run the code above in your browser using DataLab