Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 73259

Problem with the aesthetics of a bar graph

$
0
0
Hello there Stata users ;

I do have this data at hand:

Code:
* Example generated by -dataex-. To install: ssc install dataex
clear
input str47 guerre long effectifsdamricainsenserviceoudp
"Guerre de l'Indépendance Americaine (1775-1783)"   217000
"Guerre Anglo-Américaine de 1812"                   286730
"Guerres Indiennes (1817-1898)"                     106000
"Guerre Américano-Mexicaine (1846-1848)"             78718
"Guerre de Sécession (1861-1865)"                  3263363
"Guerre Hispano-Américaine (1898-1902)"             306760
"Guerre Mondiale I (1917-1918)"                    4734991
"Guerre Mondiale II (1941 –1945)"                 16112566
"Guerre de Corée (1950-1953)"                      1789000
"Guerre du Vietnam (1964-1975)"                    3403000
"Guerre du Golfe Persique (1990-1991)"              694550
"Irak / Afghanistan"                               2500000
end
As you can see, it is about representing that data in the form of a bar graph. When using the "graph hbar (sum) effectifsdamricainsenserviceoudp , over( guerre )", I get a graph with the Y axis categories pushed to the side, which means I can't show them and see them, they are offset to the side.

Any help with this please? Thanks

Viewing all articles
Browse latest Browse all 73259

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>