Re: [R] Not generating line chart

2012-01-19 Thread Jan van der Laan
...@eoos.dds.nl] Sent: Thursday, January 19, 2012 5:09 PM To: Sri krishna Devarayalu Balanagu Cc: r-help@r-project.org Subject: Re: [R] Not generating line chart Devarayalu, Please reply to the list. And it would have easier if you would have outputted your data using dput (in your case dput(Orange1)) so

Re: [R] Not generating line chart

2012-01-19 Thread Jan van der Laan
(i in refid) { Orange2 <- Orange1[i == Orange1$REFID, ] pdf('PGA.pdf') print(qplot(TIME1, BASCHGA, data=Orange2, geom= c("line"), colour= ACTTRT)) dev.off() } Regards Devarayalu -Original Message- From: Jan van der Laan [mailto:rh...@eoos.dds.nl] Sent: Thursday, Ja

Re: [R] Not generating line chart

2012-01-19 Thread Jan van der Laan
Devarayalu, This is FAQ 7.22: http://cran.r-project.org/doc/FAQ/R-FAQ.html#Why-do-lattice_002ftrellis-graphics-not-work_003f use print(qplot()) Regards, Jan Sri krishna Devarayalu Balanagu schreef: Hi All, Can you please help me, why this code in not generating line chart? librar

[R] Not generating line chart

2012-01-18 Thread Sri krishna Devarayalu Balanagu
Hi All, Can you please help me, why this code in not generating line chart? library(ggplot2) par(mfrow=c(1,3)) #qplot(TIME1, BASCHGA, data=Orange1, geom= c("point", "line"), colour= ACTTRT) unique(Orange1$REFID) -> refid for (i in refid) { Orange2 <- Orange1[i == Orange1$REFID, ] pdf('PGA.pdf