Error messages center around illegal ylim values but what causes these errors, how do I see what code is being generated ?
Error in plot.window(...) : need finite 'ylim' values
In addition: Warning message:
In bplt(at[i], wid = width[i], stats=z$stats[,i], out=z$out[z$group==:
Outlier (-Inf) in boxplot 1 is not drawn
range of df6(x3) = (-Inf, 0.5068176)
df6$x3[[1]] = -Inf
There are zeroes in x3 which is causing the problem.
Two questions:
(1) Does one does not plot the transformed 0's? How do we handle this situation????????????????
(2) How do I modify the for(i in 1:11) to skip 3? The following will do it.
for(i in 1:11) {
if(i==3) next # skip 3rd iteration and go to next iteration
v <- paste("x",i,sep="")
print(range(df6[[v]]))
}
If you are doing a log transform the zeros will cause values of -Inf. How you handle that is up to you. You can filter the data before plotting it or you can skip that entire column of the data frame. For filtering, you can do something like this: