Re: [R] Error when producing multiple graphes

2008-03-19 Thread Uli Kleinwechter
I just solved the problem. The error happened because of the empty variables in the dataframe. In any case, thanks for caring. bartjoosen schrieb: > Could you provide us some working codo, so that we can reproduce the error > and see what went wrong? > > > Uli Kleinwechter wrote: > >> Dear

Re: [R] Error when producing multiple graphes

2008-03-19 Thread Uli Kleinwechter
Sorry. My last message maybe was not very helpful. Please find here a more concise form of the code. It produces a dataframe of more or less the characteristics of the one that I use and yields the same error message: * x1<-c(1,2,3,4,NA ,NA ,NA, 3, 1, 1, 1, 1, 2, 2, 3, 4, 4) x2<-c(2,3,4,3,4,

Re: [R] Error when producing multiple graphes

2008-03-19 Thread Uli Kleinwechter
bartjoosen schrieb: > Could you provide us some working codo, so that we can reproduce the error > and see what went wrong? > Of course. Here is the relevant part of the code I'm working with. I suppose it will be helpful for you to have the csv file, as well. But as an attachment will be dele

Re: [R] Error when producing multiple graphes

2008-03-19 Thread bartjoosen
Could you provide us some working codo, so that we can reproduce the error and see what went wrong? Uli Kleinwechter wrote: > > Dear all, > > Within a larger script I use the following code to produce barplots for > all variables contained in a dataframe "type3m": > > for(xn in names(ty

[R] Error when producing multiple graphes

2008-03-18 Thread Uli Kleinwechter
Dear all, Within a larger script I use the following code to produce barplots for all variables contained in a dataframe "type3m": for(xn in names(type3m)) barplot(table(type3m[[xn]]), main = paste ("Barplot of", xn), width=0.75,legend.text=barnamesm, xlim=c(0,4),ylim=c(0,400)) The