'b' appears to be characters. try pie(as.integer(b))
On Wed, Mar 16, 2011 at 9:28 AM, rens <picca...@hotmail.com> wrote: >> b > [1] "2" "1" "1" "1" "1" "1" >> pie(b) > Error in pie(b) : 'x' values must be positive. > > Can someone help me? > > And sorry i am an beginner > > -- > View this message in context: > http://r.789695.n4.nabble.com/x-values-must-be-positive-tp3381744p3381744.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > 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. > -- Jim Holtman Data Munger Guru What is the problem that you are trying to solve? ______________________________________________ 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.