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@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.