catplot | R Documentation |
Draws conditioned or unconditioned frequency table of two multi categorial variables
catplot(
x,
y,
margin = 1,
main = "",
xlab = "",
ylab = "",
cex.lab = 1,
marginleft = 5,
cexmax = 4
)
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 |
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.