Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: Connected dot plot


From   Roger Newson <[email protected]>
To   [email protected]
Subject   st: RE: Connected dot plot
Date   Wed, 25 Feb 2004 20:15:14 +0000

At 11:27 25/02/04 -0800, Gary Longton wrote:
Chris Barnes wrote:

I wonder if I could ask a graphics question.
I want to produce a connected dot plot with whisker for each time point
representing 95% confidence limits. Could someone point me in the write direction.
and Nick Cox replied:

> I guess the right direction is something like
>
> twoway rspike lower upper time ||
> connect response time
>
> and that hinges on the limits being put in
> variables beforehand.

Or, a slight twist on Nick's suggestion if you prefer the more traditional error bars (whiskers with "caps"?) to depict confidence limits: use -rcap- in place of -rspike- . See help for twoway_rcap or twoway_rspike
Another possibility is to use the -eclplot- package, downloadable from SSC, which plots general confidence interval plots. This has a -scatteropts()- option that can contain -scatter_options as "options within options", including a -connectstyle()- option to connect the points corresponding to the estimates. It also has a -rplottype()- option so the user can specify capped or spiked error bars. In Stata, type -ssc desc eclplot- to find out more.

Roger


--
Roger Newson
Lecturer in Medical Statistics
Department of Public Health Sciences
King's College London
5th Floor, Capital House
42 Weston Street
London SE1 3QD
United Kingdom

Tel: 020 7848 6648 International +44 20 7848 6648
Fax: 020 7848 6620 International +44 20 7848 6620
or 020 7848 6605 International +44 20 7848 6605
Email: [email protected]
Website: http://www.kcl-phs.org.uk/rogernewson

Opinions expressed are those of the author, not the institution.

*
* 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