Hi!
I want to make a box plot of distribution of 6 different scores (score 1-6) by a grouping variable (group, values 0 and 1). Using the following syntax, I get the shown box plot in Stata.
graph box Score1 Score2 Score3 Score4 Score5 Score 6, over(group)
[ATTACH=CONFIG]temp_20952_1610177025666_279[/ATTACH]
However, I want my box plot to compare score 1 between groups 0 and 1, then score 2 between groups 0 and 1, etc, and not first all scores for group 0 and then for group 1. So the box plot should look something like this:
[ATTACH=CONFIG]temp_20953_1610177485015_356[/ATTACH]
I can not figure out how to manage this in Stata. Can anybody help me?
Related Posts with Changing the order of bars in a box plot
Working with dates (year - week)Hello, I have a variable in my dataset that expresses the year and week in the following way: year …
forvaluesI am trying to respect the rules/norms of this forum, but I didn't feel dataex did much good in this…
Using Collapse with Mi xeqI have a panel dataset organised on the individual level and I am trying to impute a categorical var…
GLM family (Poisson) or xtpoisson?Hi Everyone, I am trying to analyse a panel data using interrupted time series. I have used mi for …
How to find "plus" folder on MacHello, I am trying to find where my Mac saves new packages that I download from Stata. I tried typ…
Subscribe to:
Post Comments (Atom)
0 Response to Changing the order of bars in a box plot
Post a Comment