Re: [R] Help with Error

From: hoogeebear <jack200519_at_yahoo.ie>
Date: Thu, 17 Jan 2008 09:15:10 -0800 (PST)

Thnk you very much! It now works correctly!

Much Appreciated,

John.

hoogeebear wrote:
>
> Hi,
>
> 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.
>
> Table:
> Name Votes
> John 300
> Sean 222
> Andy 467
> Sinead 740
> David 124
> James 641
> William 380
>
> Commands:
> d <- read.table("C:\\rep.csv", head=TRUE, sep=",")

>> pie(d$Votes,

> + labels=d$Name,
> + main="Class Rep Results\n(Final Results)")
>
> Error:
> 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,
>
> John.
>
-- 
View this message in context: http://www.nabble.com/Help-with-Error-tp14923519p14925064.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help_at_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.
Received on Thu 17 Jan 2008 - 17:23:30 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 17 Jan 2008 - 17:30:07 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive