Hello all, probably a very basic question but I am brand new to stata and trying to teach it to myself (Stata 16)
I am trying to create a bar graph of frequency of BMI groups by sex.
I run the code:
graph bar (count), over(bmigrp) over(sex)
which gets the results I want, but puts all the male results on one "window" of the graph, and the female results on the other side.
Is there a way to get the results to be side by side for each category in different colours?
Thank you!
Related Posts with Having Variables in X-Axis side by side, rather than in different groups..
Collapse by a variable, while preserving others and creating new variablesHi, I have a dataset on property transactions (a sample below, for those of you from the UK, this i…
How to make it as a program?Hi All, I am trying to make this as a program. Any help? Below is my code. Thanks clear set seed 12…
smcl and putpdf textIs it possible to somehow use math symbols with putpdf? I tried various versions of this with approx…
Help with Stata Coding (Urgent!)Nothing …
Creating an indicator variable from multiple, non-mutually exclusive, dummy variablesHi! I'm trying to create an indicator variable from several dummy variables (which are not mutually …
Subscribe to:
Post Comments (Atom)
0 Response to Having Variables in X-Axis side by side, rather than in different groups..
Post a Comment