xy-plot alb font size

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

xy-plot alb font size

Veerappa Chetty
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: [hidden email],[hidden email]

        [[alternative HTML version deleted]]

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|

Re: xy-plot alb font size

Gabor Grothendieck
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 <[hidden email]> 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: [hidden email],[hidden email]
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> [hidden email] 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.
>

______________________________________________
[hidden email] 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.