[R] Increasing the font size on axes in trellis

Dimitri Liakhovitski dimitri.liakhovitski at gmail.com
Sat May 8 21:43:13 CEST 2010


Hello,

the code below gives me the picture I need - but there is on small
thing I can't figure out.
The plot has very small tick mark labels for both axes. I don't mean
the axis labels - they are both good, but what is shown near the tick
marks.
Please help me figure out what parameter I should add to make those
larger. I tried sticking cex.lab=1.3 in different places but it didn't
help.
Thank you very much!


par.settings=trellis.par.set(superpose.line =
list(col=c(PrimaryColors[4],SecondaryColors[4],PrimaryColors
[3],SecondaryColors[3]), lwd = 2,lty=c(1,3,2,4)),
       superpose.symbol = list(cex = 1.5, pch = c(20,1,3,4),
lty=c(1,3,2,4),col=c(PrimaryColors[4],SecondaryColors[4],PrimaryColors[3],SecondaryColors[3])),
           reference.line = list(col = "gray", lty ="dotted"))

       plot<-dotplot(c(out$beta,out$corr,out$j,out$rf)~rep(out$IV,4),
       groups=rep(c("x", "y","z","xx"), each=nrow(out)),
       type="b",
             auto.key = list(space = "top", points = TRUE, lines =
TRUE, cex=1.3),
               ylim=c(-.02,3.3),
       xlab=list(conditions.long[i],cex=1.5,font=2),
             ylab=list("Mean Deviation from GDW Importances",cex=1.5,font=2),

       panel = function(y,x,...) {
               panel.grid(h = -1, v = -1)
               panel.xyplot(x, y, ...)

         ltext(x, y, labels=round(y,2),cex=1.5,col="black",font=1,pos=4)

      })




--
Dimitri Liakhovitski
Ninah Consulting
www.ninah.com



-- 
Dimitri Liakhovitski
Ninah Consulting
www.ninah.com



More information about the R-help mailing list