[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

From |
"Martin Weiss" <martin.weiss1@gmx.de> |

To |
<statalist@hsphsun2.harvard.edu> |

Subject |
Re: st: AW: Making scatterplot instead of box plot... |

Date |
Thu, 14 May 2009 23:45:12 +0200 |

<> You can stack inside the -graph bar- *** graph bar (mean) bp_before bp_after (sd) bp_before bp_after, over(sex) stack ***

HTH Martin _______________________

To: <statalist@hsphsun2.harvard.edu> Sent: Thursday, May 14, 2009 11:27 PM Subject: Re: st: AW: Making scatterplot instead of box plot...

Thanks Martin,It worked! However, I want to show the data as scatter plot with all thevalues are represented as dots plus an indicator bar beside every scatterblot to show the mean and sd. If it is not possible, then I can use youridea of combining box plot with scatter plot as the 2nd graph to theright.So, could you help with making scatter plot instead of graph bar (on the2nd graph)OR to add the sd value to the top of each graph bar as a whiskers? Best regards, Amr --- On Thu, 5/14/09, Martin Weiss <martin.weiss1@gmx.de> wrote:From: Martin Weiss <martin.weiss1@gmx.de> Subject: st: AW: Making scatterplot instead of box plot... To: statalist@hsphsun2.harvard.edu Date: Thursday, May 14, 2009, 11:35 PM <> 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: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] 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/* * 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/

**References**:**Re: st: AW: Making scatterplot instead of box plot...***From:*Amr Al Sayed <asyoussef@yahoo.com>

- Prev by Date:
**Re: st: AW: Making scatterplot instead of box plot...** - Next by Date:
**Re: st: AW: Making scatterplot instead of box plot...** - Previous by thread:
**Re: st: AW: Making scatterplot instead of box plot...** - Next by thread:
**Re: st: AW: Making scatterplot instead of box plot...** - Index(es):

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