[R] Having a probelm woth creating a a simple chart.
hoogeebear
jack200519 at yahoo.ie
Thu Apr 17 18:20:28 CEST 2008
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.
More information about the R-help
mailing list