[R] xyplot

Thomas Lumley tlumley at u.washington.edu
Mon Oct 1 22:08:37 CEST 2007


It's a FAQ (7.22)

 	-thomas

On Mon, 1 Oct 2007, Samor Gandhi wrote:

> Hello,
>  I am calling the following code with the loop! It makes 3 out graphs but empty! COuld you help me plase on that? Thank you in advance
>
>  z1 <-  dbConnect(MyData, "something", "A1", "A2")
> for (tt in c("xyz", "abc", "m1")) {
> message(paste("Here", tt, "!!!"))
> mydata <- dbReadTable(z1, tt)
> jpeg(file=paste("D:/", tt, ".jpg", sep=""), width=00, height=100)
> plot.method="bitmap"
> xyplot(MyVALUE ~ MyNo | as.character(ID), data = mydata, main = tt, xlab = " ", ylab = " ", type="l")
> dev.off()
>
> }
>
>
> ---------------------------------
>
> 	[[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.
>

Thomas Lumley			Assoc. Professor, Biostatistics
tlumley at u.washington.edu	University of Washington, Seattle



More information about the R-help mailing list