[R] Creating a Double Bar Graph With Provided DataSet

Ista Zahn istazahn at gmail.com
Sat Feb 16 17:11:04 CET 2013


On Sat, Feb 16, 2013 at 10:21 AM, Rmh <rmh at temple.edu> wrote:
> You could use the likert plot in the HH package.  Look particulsrly at the population pyramid example.

Or better yet, ask your professor!

>
> 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
>>
>> 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.
>>
>> Thank you
>>
>>    [[alternative HTML version deleted]]
>>
>> ______________________________________________
>> 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.
>
> ______________________________________________
> 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.



More information about the R-help mailing list