[R] Creating a Double Bar Graph With Provided DataSet
rmh at temple.edu
Sat Feb 16 16:21:19 CET 2013
You could use the likert plot in the HH package. Look particulsrly at the population pyramid example.
Sent from my iPhone
On Feb 16, 2013, at 2:31, Brian Ngo <brianngo91 at csu.fullerton.edu> 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-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.
> Thank you
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help