Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: overlaid twoway graph, move bars


From   Martina Brandt <[email protected]>
To   [email protected]
Subject   st: overlaid twoway graph, move bars
Date   Mon, 10 Apr 2006 11:08:57 +0200

is it possible to shift the bars against each other in an overlaid graph like this:


twoway (bar mean1 land if mum==1, horizontal fcolor(black)lcolor(black))
(bar mean2 land if mum==1, horizontal fcolor(none) lcolor(gray))
(bar mean3 land if dad==1, horizontal fcolor(black) lcolor(black))
(bar mean4 land if dad==1, horizontal fcolor(none) lcolor(gray)),
ytitle(, orientation(horizontal)) xlabel(-80 "80" -70 "70" -60 "60" -50 "50" -40 "40" -30 "30" -20 "20" -10 "10" 0(10)80);



- so you are able to see both bars in every category where one group is not a subset of the other (the bars that are longer differ per category).


thanks in advance!

martina
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/




© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index