[R] Increasing the font size on axes in trellis

David Winsemius dwinsemius at comcast.net
Sat May 8 23:25:51 CEST 2010


On May 8, 2010, at 3:43 PM, Dimitri Liakhovitski wrote:

> 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!
>
Try adding:     , scales=list(x=list(cex=2)),  ...  in the dotplot call.

--  
David.
>
> 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
>
> ______________________________________________
> R-help at 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.

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list