[R] Multiple stripcharts using "for loop"
Paul JH Drake
p.drake at beatson.gla.ac.uk
Tue Nov 9 14:46:14 CET 2004
Hi
I'm able to create multiple plots from a dataset using a "for loop" to
change variables, but when I try with stripchart it doesn't work.
Standard boxplot:
for(i in 2:14){boxplot(klk[,i]~Group,main=colnames(klk)[i])
Stripchart:
for(i in 2:14){stripchart(klk[,i]~Group,main=colnames(klk)[i])
gives:Error in plot.window(xlim, ylim, log, asp, ...) :
need finite xlim values
In addition: Warning messages:
1: no finite arguments to min; returning Inf
2: no finite arguments to max; returning -Inf
3: no finite arguments to min; returning Inf
4: no finite arguments to max; returning -Inf
Does anyone know how to do this properly?
Thanks in advance
Paul
More information about the R-help
mailing list