[R] Help with Error

hoogeebear jack200519 at yahoo.ie
Thu Jan 17 17:41:37 CET 2008


I am having trouble with an error I keep getting. I am just trying to create
a simple pic chart from a small table. Hope someone can help. I am new to R.

 Name Votes
    John   300
   Sean    222
    Andy   467
  Sinead   740
   David   124
   James   641
 William   380

d <- read.table("C:\\rep.csv", head=TRUE, sep=",")
> pie(d$Votes,
+ labels=d$Name,
+ main="Class Rep Results\n(Final Results)")

Error in pie(d$votes, labels = d$name, main = "Class Rep Results\n(Final
Results)") : 
  'x' values must be positive.

Hope to hear from someone soon....

Best Regards,

View this message in context: http://www.nabble.com/Help-with-Error-tp14923519p14923519.html
Sent from the R help mailing list archive at Nabble.com.

More information about the R-help mailing list