[R] xy-plot alb font size
Gabor Grothendieck
ggrothendieck at gmail.com
Mon Mar 2 22:10:37 CET 2009
Try this with the built in CO2:
xyplot(uptake ~ conc | Treatment, CO2,
xlab = list("A1C", cex = 2),
ylab = list("Fasting Plasma Glucose", cex = 2))
On Mon, Mar 2, 2009 at 3:47 PM, Veerappa Chetty <chettyvk at gmail.com> wrote:
> I would appreciate any help for the following question. How to increase the
> font size of labels for the x and y axes in the following code?
> ---------------------------------
>
> xyplot(lbxglu~lbxgh|eth,reg.dat.5, panel = p, col = 1:2,
> par.strip.text = list(cex = 1.25,col="brown"),
> xlab="A1C",ylab="Fasting Plasma Glucose", main="FPG")
> p <- function(..., col) {
> panel.xyplot(..., type = "p", col = col[1])
> panel.xyplot(..., type = "smooth", col = col[2])
> panel.abline(...,h = 126, col = "red",lty=2,lwd=2)
> panel.abline(...,v = 6.5, col = "cyan",lty=3,lwd=3)
> }
> ------------------------------------------------------
> Thanks.
> Chetty
> --
> Professor of Family Medicine
> Boston University
> Tel: 617-414-6221, Fax:617-414-3345
> emails: chettyvk at gmail.com,vchetty at bu.edu
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.
>
More information about the R-help
mailing list