Re: [Rd] dotplot in a loop

2009-04-18 Thread Qifei Zhu
Ok, noted. Sorry for the confusion. -Original Message- From: Martin Maechler [mailto:maech...@stat.math.ethz.ch] Sent: Saturday, April 18, 2009 1:02 PM To: Qifei Zhu Cc: r-devel@r-project.org Subject: Re: [Rd] dotplot in a loop This is *definitely* a question for R-help, not for R

[Rd] dotplot in a loop

2009-04-18 Thread Qifei Zhu
Hi all, I'm a newbie R developer, am trying to dotplot a few graphs using a for loop. The following code works fine but once I wanna plot inside a loop, nothing happens. > for(i in 1:1){dotplot(y~x)} > y <- c(1,2,3) > x <- c('a','b','c') > dotplot(y~x) > for (i in 1:3) {dotplot(y~x)} (y and x de