[R] Creating a Double Bar Graph With Provided DataSet

John Kane jrkrideau at inbox.com
Sat Feb 16 17:15:07 CET 2013


No solution since it is a school work exercise but  some hints:

First read the barplot help. Enter  ?barplot to bring it up.  I find it best to 

Then have a look at ?par specifically the mfcol, mfrow entry.

Also just google for something like " R statistics barplot color / colour " and so on

This should get you started.

John Kane
Kingston ON Canada


> -----Original Message-----
> From: dwinsemius at comcast.net
> Sent: Sat, 16 Feb 2013 05:57:29 -0800
> To: brianngo91 at csu.fullerton.edu
> Subject: Re: [R] Creating a Double Bar Graph With Provided DataSet
> 
> 
> On Feb 15, 2013, at 11:31 PM, Brian Ngo wrote:
> 
>> To the volunteers of R-Help.
>> 
>> Hello, I am currently stuck on an RStudio assignment. The assignment
>> involves creating a double bar graph with the provided info
>> 
>> http://math.fullerton.edu/mori/data/introstats/pennstate3.txt
>> 
>> My professor has only gone over the very basics of RStudio and we only
>> learned how to make a simple bar graph and labeling x and y axis. The
>> specific directions from my professor:
>> 
>> Draw a side-by-side bar graph of the variables WtFeel and Sex. The x-
>> axis,
>> should include the variable WtFeel, and the side-by-side bars should
>> be the
>> Sex categories. Color Males by blue, and females by red. Also, give a
>> legend and a title for your graph.
>> 
>> I know how to do the labeling and coloring of the graph, but the
>> actually
>> plotting of a double bar graph eludes me. I do not expect a full-on
>> answer
>> (though it would be nice), but at least a guide on what to do
>> because I am
>> so lost.
>> 
> 
> Homework problems are specificly noted as not being welcome in the
> Rhelp Posting Guide. If I were you I would be using MarkMail to search
> the rhelp archives.
> 
> --
> 
> David Winsemius, MD
> Alameda, CA, USA
> 
> ______________________________________________
> 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.

____________________________________________________________
FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks & orcas on your desktop!



More information about the R-help mailing list