hey lobachevsky - thanks! but: Error in barplot.default (matrix, col = c("yellow", "purple"), beside = TRUE) : 'height' must be a vector or a matrix
what to do? :) Gesendet: Dienstag, 01. Oktober 2013 um 10:42 Uhr Von: "Jim Lemon [via R]" <ml-node+s789695n467734...@n4.nabble.com> An: happyR <tobi_gebetsber...@gmx.at> Betreff: Re: barplot - easy for experienced, difficult for me On 10/01/2013 05:53 PM, happyR wrote: > ... > Do you think it might have sth to do with how&nbsp;my dataset is built up? > Yes, happyR, it is definitely your dataset. I think this one is far superior: spineless<-matrix(c(6,3,9,5,4,6,7,1,3,8,7,6,10,4,3,7,6,11), nrow=2) slnames<-c("Bug","Slug","Wasp","Tick","Nit","Worm", "Gnat","Midge","Fly") barpos<-barplot(spineless,col=c("yellow","purple"), main="Spineless pests",xlab="Critter",ylab="Peskiness", beside=TRUE) legend(7,10,c("Here","There"),fill=c("yellow","purple")) library(plotrix) staxlab(1,at=colSums(barpos)/2,labels=slnames) Lobachevsky ______________________________________________ [hidden email] 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. If you reply to this email, your message will be added to the discussion below: http://r.789695.n4.nabble.com/barplot-easy-for-experienced-difficult-for-me-tp4677251p4677341.html To unsubscribe from barplot - easy for experienced, difficult for me, click here . NAML -- View this message in context: http://r.789695.n4.nabble.com/barplot-easy-for-experienced-difficult-for-me-tp4677251p4677342.html Sent from the R help mailing list archive at Nabble.com. [[alternative HTML version deleted]] ______________________________________________ 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.