This is a graph edition question.
I have a very simple dataset. My aim is to create a bargraph with two columns (2 variables), sorted by var "averageprobsolv", by country.
graph bar (mean) averagereading (mean) averageprobsolv, over(country, sort(averageprobsolv))
My problem is: there is only variability at the top - so my scale goes from 0 to 600, but I want my graph's scale to go from 400 to 600. When I try to change the lower limit on the stata editor it doesn't let me to set the lower limit to a value greater than 0. I wanted the variability between countries to be visible to aid the interpretation. Can anyone help me?
Thank you,
Marta
I have a very simple dataset. My aim is to create a bargraph with two columns (2 variables), sorted by var "averageprobsolv", by country.
graph bar (mean) averagereading (mean) averageprobsolv, over(country, sort(averageprobsolv))
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str5 country int(averageprobsolv averagereading) "AUT" 506 490 "BEL" 508 509 "CAN" 526 523 "CZECH" 509 493 "DK" 497 496 "EST" 515 516 "FIN" 523 524 "FR" 511 505 "DEU" 509 508 "IR" 498 523 "IT" 510 487 "JPN" 552 538 "KOR" 561 536 "NLD" 511 511 "NOR" 503 504 "POL" 481 518 "SVK" 483 463 "ESP" 477 486 "SWE" 491 483 "UK" 517 500 "USA" 508 498 end
Thank you,
Marta
Comment