[R] fontsize in mosaic plot lables

Alexander.Herr at csiro.au Alexander.Herr at csiro.au
Wed Sep 19 04:04:10 CEST 2007


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?

Thanx
Herry



More information about the R-help mailing list