[R] Creating a Double Bar Graph With Provided DataSet
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.
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
>> 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-
>> 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
>> plotting of a double bar graph eludes me. I do not expect a full-on
>> (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
> PLEASE do read the posting guide
> 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