Thanks Patric, mosaic{vdc} takes gpar parameters. So cex.axis does not work for
mosaic(Titanic, pop=FALSE, labeling_args=list(rot_labels=c(bottom=90,top=90),cex.axis=0.5)) or mosaic(Titanic, pop=FALSE, labeling_args=list(rot_labels=c(bottom=90,top=90)),cex.axis=0.5) However, mosaic(Titanic, pop=FALSE, labeling_args=list(rot_labels=c(bottom=90,top=90),gp_labels=(gpar(fontsi ze=5)))) works for all labels. Is there a way to adjust only one set of axis labels? Thanx and cheers Herry -----Original Message----- From: Patrick Connolly [mailto:[EMAIL PROTECTED] Sent: Thursday, September 20, 2007 7:15 AM To: Herr, Alexander Herr - Herry (CSE, Townsville); [EMAIL PROTECTED] Subject: RE: [R] fontsize in mosaic plot lables > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > [EMAIL PROTECTED] > Sent: Wednesday, 19 September 2007 2:04 p.m. > To: [EMAIL PROTECTED] > Subject: [R] fontsize in mosaic plot lables > > Hi List, > > I am trying unsucessfully to modify the fontsize of lables in mosaic: > > > require(vcd) > mosaic(Titanic, pop=FALSE, > labeling_args=list(rot_labels=c(bottom=90,top=90), > set_varnames = c(Sex = "Gender"), > gp_text=gpar(fontsize=20))) #can't get it to resize text > > tab <- ifelse(Titanic < 6, NA, Titanic) # it works for labeling_cells > labeling_cells(text = tab, margin = > 0,gp_text=gpar(fontsize=20))(Titanic) > > What am I doing wrong? The mosaic function isn't part of lattice. Try cex.axis in a more or less normal way instead of gpar settings. HTH ___________________________________________________________________ The contents of this e-mail are privileged and/or confidenti...{{dropped}} ______________________________________________ R-help@r-project.org 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.