Skip to content
Prev 139826 / 398525 Next

Error when producing multiple graphes

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,3,4,2,2,3,4,NA,NA,NA,NA,4,3)

x3<-c(NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA)

x4<-c(1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,1,2)

type3m<-data.frame(x1,x2,x3,x4)

barnamesm<-c("1=One","2=Two", "3=Three", "4=Four")

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))
****

Thanks again!

Uli

bartjoosen schrieb: