Re: [R] bar-chart help

From: <Richard.Cotton_at_hsl.gov.uk>
Date: Tue, 22 Apr 2008 11:33:08 +0100


> I have a table like below outside R environment
>
> Varible_Name
> Labels
> Bad_Percent
> Good_Percent
> Var1_Postal_Code_Availibility
> 1
> 0,149367931
> 0,850632069
>
> 0
> 0,19709687
> 0,80290313
>
> Variable_Name column contains a single entry, the variable name, this
is
> the title of the graphic
>
> I want to plot a barchart Bad_Percent (blue) versus Good_Percent (red)
> within each Label

This sounds like a simple problem to solve, but you'll have to tell us more. Which bit are you having problems with, getting the data into R in a suitable form, or plotting the barchart?

Take a look at the function ?read.table for reading in your data, and ?barplot for plotting.

Regards,
Richie.

Mathematical Sciences Unit
HSL



ATTENTION: This message contains privileged and confidential inform...{{dropped:20}}

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 Tue 22 Apr 2008 - 10:42:18 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 Tue 22 Apr 2008 - 11:30:30 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