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
Multiple variables in one matrix - to putexcelHello folks, Been trying to figure this one out but keep getting roadblocks. Wondered if anyone els…
Failure CurveHi, I am trying to generate a Kaplan Meier graph using my data set looking at recurrence after a su…
Why some control variables are dropped when I run a regression?Dear Stata Users, I have the following problem. When I run the regression as specified below my var…
Question regarding loop function.Dear Statalist members, I am trying to set up a loop function, but so far my efforts have been frui…
merging the same dates into my dataDear statalist members, Im trying to manage my data. My data is like this dataset clear all input …
Subscribe to:
Post Comments (Atom)
0 Response to Changing the order of bars in a box plot
Post a Comment