cap log close log using stata-read_data-graph.smcl, replace smcl /* READING DATA: Graphics */ /* Open the elections dataset (created in the spreadshett subprogram) */ use SOCY699C-election.dta, clear /* Show some graph examples */ graph hbar percent, over(party, sort(1) descending) blabel(bar, format(%9.2f)) scheme(s2color) name(g1, replace) graph hbar up notup if up>0, over(party, sort(1) descending) stack scheme(s2color) name(g2, replace) log close