Dear all,

This is a simple question, but as far as I can tell, it's not in MASS  
or the R help archives or par man pages.

Are there any cex.* parameters which allow me to set the text size of  
the labels for the axes and the size of the legend?

I want to plot the following table in which the "Definitely not",  
etc. are large.  cex.lab lets me change the size of the xlab text,  
but I don't care whether xlab is large.  I also want the "Child  
hasn't had oral sex", etc. in the legend to be large.

 > par.prob.oralsex
                                                Definitely not    Probably not 
Yes,  
probably        Yes, definitely
child hasn't had oral sex       0.6    0.2   0.1              0.1
child has had oral sex          0.5    0.3  0.1         0.1


barplot(par.prob.oralsex, beside=T, ylab="Proportion parents", ylim=c 
(0,1), legend.text=T, horiz=F, col=c("red", "blue"), space=c(0,4),  
xlab="Parent response", cex.axis=1.3, cex.lab=1.3, cex.main=1.3,  
cex.sub=1.3)

Thanks,

Janet

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to