Skip to content
Prev 163433 / 398506 Next

Graphics for proportion within factor

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