Hello,
I am trying to create a bar graph of one level of a categorical variable. However, I am stuck at how to code ggplot2 properly so i can parse out the level. Here is my code below.
head (Re_Space_wo2)
Remain Gender NM1_SpacePump Freq Prop
1 3 2 0 230580.383 0.247448980
2 3 2 1 166398.214 0.178571429
3 3 1 0 118855.867 0.127551020
4 2 2 0 99838.929 0.107142857
5 4 2 0 80821.990 0.086734694
6 3 1 1 61805.051 0.066326531
I would like to graph to show results for only the following variables and levels. Remain, all levels. Gender only level 2, and NM1_SpacePump, all levels. I would like to keep the Freq and Prop columns as well. Could someone point me in the right direction?
It's only been about a month since I started exploring ggplot2. All help is greatly appreciated.
Thank you.