Re: [R] Plotting Y axis labels within a loop

2010-10-13 Thread Steve Swope
Got it , thanks! From: David Winsemius [via R] [mailto:ml-node+2992845-2070125287-199...@n4.nabble.com] Sent: Tuesday, October 12, 2010 3:28 PM To: Steve Swope Subject: Re: Plotting Y axis labels within a loop On Oct 12, 2010, at 5:54 PM, Steve Swope wrote: > > When I plot

[R] Plotting Y axis labels within a loop

2010-10-12 Thread Steve Swope
When I plot y axis labels with in a loop they (I) get confused. Here is some sample code: Fe<-c(1.1, 4.5, 7.2, 8.8) Mn<-c(9.6, 7.2, 5.3, 2.1) Cd<-c(2.2, 3.4, 6.1, 3.2) FeMnCd<-data.frame(Fe, Mn, Cd) par(mfrow=c(2,2)) for(i in FeMnCd)plot(i, xlab="Event",ylab=colnames(FeMnCd)[i]) The more plot