[R] Create Pie chart from .csv file
michaeligoe at gmail.com
Wed May 6 14:24:55 CEST 2009
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 what I need to enter
to get anything at all from this?
Many thanks again,
Thomas Roth (geb. Kaliwe) wrote:
> Sorry for mailing to you personally...
> for types
> freqTable = table(types)
> ##example for some data
> temp = data.frame(types = 1:10)
> Thomas Roth
> PS: use barplot instead of pie
> DonkeyRhubarb schrieb:
>> 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,
>> year, howpublished
>> So say I want to export a pie chart that groups together all entries
>> 'types' e.g. 3 x statistics 2x education etc. Im looking to have a
>> represent this graphically that shows which type of entry is in most
>> frequently. Preferably I'd like to export to a PDF chart and while I can
>> this by typing variables directly into the R console, I cannot manage it
>> from a .csv file.
>> If you cannot help me with this specific problem, just knowing how to
>> a generic pie chart would be a great help.
>> This is part of my final software project which is due in one week. I
>> very much appreciate any help.
>> Many thanks in advance
> R-help at r-project.org mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
View this message in context: http://www.nabble.com/Create-Pie-chart-from-.csv-file-tp23387025p23405585.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help