Statalist The Stata Listserver


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

Re: st: dot plot


From   Maarten buis <maartenbuis@yahoo.co.uk>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: dot plot
Date   Mon, 6 Nov 2006 07:07:21 +0000 (GMT)

*----------- begin example -----------
sysuse auto
sum price if foreign == 1, detail
local medfor = r(p50)
sum price if foreign == 0, detail
local meddom = r(p50)

dotplot price, over(foreign) /*
   */ yline(`medfor', lpattern(dot) ) /*
   */ yline(`meddom', lpattern(dash)) 
*------------ end example -------------

--- Lukar Ezra Thornton <lukar@unimelb.edu.au> wrote:

> Is there a way to display the median value on a dot plot by a line
> rather than by a row of ++?  I have a dot plot over three groups and
> I want just a small line showing where the median is for each group.
> 
> Thanks
> Lukar
>  
> -----------------------------------------------
> Lukar Thornton
> PhD Candidate / VicLANES Research Assistant
> lukar@unimelb.edu.au  
> Ph: (03) 8344 7389
> Mob: 0410 566 848
> http://www.kcwhs.unimelb.edu.au/viclanes/
> ----------------------------------------------
> 
>  
>  
> 
> 
> *
> *   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/
> 


-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands

visiting adress:
Buitenveldertselaan 3 (Metropolitan), room Z434

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------

Send instant messages to your online friends http://uk.messenger.yahoo.com 
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index