Hello,
I have just started working with Stata and I am trying to make a boxplot of the CO2 concentration in different schools. I would like to name the schools on the plot, change the text size and alternate the text. All the commands below work fine separately but I cannot find a way to combine the label()/alternate function with the relabel or sort. I imagine it is just a simple trick but I have spent hours trying to solve it. Can any of you help me out?
graph box co2 if, over(school, label(labsize(large) alternate))
graph box co2 if, over(school, relabel(1 "School1" 2 "School2" 3 "School3"))
Thanks,
Stine
I have just started working with Stata and I am trying to make a boxplot of the CO2 concentration in different schools. I would like to name the schools on the plot, change the text size and alternate the text. All the commands below work fine separately but I cannot find a way to combine the label()/alternate function with the relabel or sort. I imagine it is just a simple trick but I have spent hours trying to solve it. Can any of you help me out?
graph box co2 if, over(school, label(labsize(large) alternate))
graph box co2 if, over(school, relabel(1 "School1" 2 "School2" 3 "School3"))
Thanks,
Stine
Comment