Re: [R] Create Pie chart from .csv file

2009-05-07 Thread Richard . Cotton
> Ive found out a way around my problem. I was trying to plaot a histogram of > strings, but I had to change it into integers. I ran an sql query on the > original DB that I got the CSV file from and used COUNT to get the number of > each unique item in a given column. I then used these numbers t

Re: [R] Create Pie chart from .csv file

2009-05-06 Thread Gabor Grothendieck
The sqldf package allows you to apply SQL statements to R data frames: http://sqldf.googlecode.com On Wed, May 6, 2009 at 12:08 PM, DonkeyRhubarb wrote: > > > Ive found out a way around my problem. I was trying to plaot a histogram of > strings, but I had to change it into integers. I ran an sql

Re: [R] Create Pie chart from .csv file

2009-05-06 Thread DonkeyRhubarb
Ive found out a way around my problem. I was trying to plaot a histogram of strings, but I had to change it into integers. I ran an sql query on the original DB that I got the CSV file from and used COUNT to get the number of each unique item in a given column. I then used these numbers to create

Re: [R] Create Pie chart from .csv file

2009-05-06 Thread DonkeyRhubarb
Im more than happy to use a barplot, but at this stage time is just so short I need something to show. I can find examples of plotting a line of numbers that has been manually typed into R, but Im missing something to do it from a CSV file. The name of my csv file is OutputFromDB. Would you know

Re: [R] Create Pie chart from .csv file

2009-05-05 Thread Thomas Roth (geb. Kaliwe)
Sorry for mailing to you personally... for types read.csv(file.choose()) freqTable = table(types) pie(freqTable) ##example for some data temp = data.frame(types = 1:10) pie(table(temp)) Thomas Roth PS: use barplot instead of pie DonkeyRhubarb schrieb: Hi all, I am looking to create a pie

Re: [R] Create Pie chart from .csv file

2009-05-05 Thread Richard . Cotton
> I am looking to create a pie chart from a given column in a .csv file. > > My class variables are as follows: > > entry_type, uniquekey, types, title,url, abstract, journal, > author, month, > year, howpublished > > So say I want to export a pie chart that groups together all entrie

Re: [R] Create Pie chart from .csv file

2009-05-05 Thread Philipp Rappold
Hi, I used ggplot2 for plotting recently, you should give it a try - it's excellent. http://had.co.nz/ggplot2/ All the best Philipp DonkeyRhubarb wrote: > Hi all, > > I am looking to create a pie chart from a given column in a .csv file. > > My class variables are as follows: > > entry_type

Re: [R] Create Pie chart from .csv file

2009-05-05 Thread Sarah Goslee
You could go to rseek.org and search for pie chart; that will give you lots of ideas and examples, including discussion of why pie charts are a bad idea. Sarah On Tue, May 5, 2009 at 9:02 AM, DonkeyRhubarb wrote: > > Hi all, > > I am looking to create a pie chart from a given column in a .csv fi

[R] Create Pie chart from .csv file

2009-05-05 Thread DonkeyRhubarb
Hi all, I am looking to create a pie chart from a given column in a .csv file. My class variables are as follows: entry_type, uniquekey, types, title,url, abstract, journal, author, month, year, howpublished So say I want to export a pie chart that groups together all entries u