catplot: catplot

View source: R/catplot.R

catplotR Documentation

catplot

Description

Draws conditioned or unconditioned frequency table of two multi categorial variables

Usage

catplot(
  x,
  y,
  margin = 1,
  main = "",
  xlab = "",
  ylab = "",
  cex.lab = 1,
  marginleft = 5,
  cexmax = 4
)

Arguments

x

multi categorial variable

y

multi categorial variable

margin=1

conditioned frquencies (1: cond. on y, 2: cond. on x, NULL: unconditioned)

main=""

main title

xlab=""

x axis label

ylab=""

y axis label

marginleft=5

left margin space

cexmax=2

max size of squares

Examples

x<-sample(2010:2020,1000,T,.2+(1:11)*.5)
y<-sample(paste("group",LETTERS[1:10]),1000,T)
catplot(x,y,main="catplot()",xlab="year")

ingmarboeschen/graphing documentation built on Jan. 14, 2025, 7:32 a.m.