search for: numpanelrow

Displaying 1 result from an estimated 1 matches for "numpanelrow".

Did you mean: numpanelrows
2007 Jul 26
1
How to auto-scale cex of y-axis labels in lattice dotplot?
...tters: windows() reps=6 dat=data.frame(let=rep(letters,each=reps), grp=rep(1:reps, 26), y=runif(26*reps)) dotplot(let~y|grp, dat) Is there a way to automatically scale the labels so that they are not over-plotted? I currently do something like this: Calculate or guess the number of panel rows: NumPanelRows cexLab <- min(1, .9*par()$pin[2]/ (nlevels(dat$let)*NumPanelRows*strheight("A",units="in"))) dotplot(..., scales=list(y=list(cex=cexLab)) Is there an easier way? Is there a function that I can call which calculates the layout of the panels that will be used i...