[R] Plotting Y axis labels within a loop
Steve Swope
steve at pgwg.com
Tue Oct 12 23:54:05 CEST 2010
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 plots per page, the crazier it gets! TIA
Steve
--
View this message in context: http://r.789695.n4.nabble.com/Plotting-Y-axis-labels-within-a-loop-tp2992813p2992813.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list