[R] Having a probelm woth creating a a simple chart.

From: hoogeebear <jack200519_at_yahoo.ie>
Date: Thu, 17 Apr 2008 09:20:28 -0700 (PDT)

Hello,

I am having trouble with creating a simple bar chart using R. My file just consists of 1 column called reason. Within this column, there are 2 responses(Room for Improvement and Info entered is all relevant). My code for creating the charts is as follows:

d <-read.table("C://project/graphs/reason.csv", sep=",", header=TRUE) pie(d$reason,
labels=d$reason,
main="Results")

Here is my error:
Error in pie(d$reason, labels = d$reason, main = "2004 EU Parliament Results\n(Seats by Party)") :
  'x' values must be positive.

Here is my file:
Reason
Room for Improvement
Information entered is all relevant
Room for Improvement
Room for Improvement
Room for Improvement
Room for Improvement
Room for Improvement
Room for improvement
Room for improvement
Room for improvement
Information entered is all relevant
Room for Improvement
Room for Improvement
Room for improvement
Room for improvement
Room for improvement
Room for Improvement
Room for Improvement
Room for improvement
Room for improvement
Room for improvement
Information entered is all relevant
Room for improvement

Hope someone can help.

BR,

Jack.

-- 
View this message in context: http://www.nabble.com/Having-a-probelm-woth-creating-a-a-simple-chart.-tp16746017p16746017.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 Apr 2008 - 17:21:17 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 Apr 2008 - 17:30:29 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