Skip to content

Graphics for proportion within factor

1 message · Jim Lemon

#
Rob James wrote:
Hi Rob,
You might get what you want with the  barhier function in the plotrix 
package.
Try this:

test.df<-data.frame(Employ=sample(c("FT","PT","NO"),100,TRUE),
 Sex=sample(c("M","F"),100,TRUE))
library(plotrix)
barhier(test.df,col=c("red","green","blue"),fade=TRUE)

Jim