<>
Not sure how a scatter plot can have bars, but here is something you could
try:
*************
sysuse bpwide, clear
graph box bp_before bp_after,/*
*/ over(sex) name(first, replace) /*
*/ nodraw
graph bar (mean) bp_before bp_after /*
*/(sd) bp_before bp_after, over(sex)/*
*/ name(second, replace) nodraw
gr combine first second
*************
HTH
Martin
-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Amr Al Sayed
Gesendet: Donnerstag, 14. Mai 2009 22:21
An: Statalist
Betreff: st: Making scatterplot instead of box plot...
Dear all,
I have simple problem with transforming a box plot of two continuous
variables (y1 and y2) measured over 4 time points (x, with x is a
categorical variable 0,1, 2, 3) into scatter graph with bar indicating their
means and standard deviation. The rationale is a more informative way of
data display.
I used the stata command (Stata 9.2): graph box y1 y2, over(x)
Could you help me to display my data as scatterplot instead of blind box?
Regards,
Amr
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/