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.

______________________________________________
R-help@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.

Reply via email to