[R] Creating a Double Bar Graph With Provided DataSet

David Winsemius dwinsemius at comcast.net
Sat Feb 16 14:57:29 CET 2013


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



More information about the R-help mailing list