Statalist


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

st: RE: Question: Option -by- in -eclplot- revisited


From   "Newson, Roger B" <r.newson@imperial.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Question: Option -by- in -eclplot- revisited
Date   Thu, 19 Jun 2008 10:58:01 +0100

A possible fix might be to create the line using a -line- command in the
-plot()- option of -eclplot-. You would first create 2 variables in each
by-group, with names such as -linex- and -liney-, such that -linex- was
equal to the appropriate x-axis reference line for the by-group, and
-liney- was chosen to span the y-axis range in each by-group. The
plot-option for -eclplot- would then be

plot(line liney linex, sort)

and this would add a vertical x-axis reference line to the subplot for
each by-group.

I hope this helps.

Best wishes

Roger


Roger B Newson
Lecturer in Medical Statistics
Respiratory Epidemiology and Public Health Group
National Heart and Lung Institute
Imperial College London
Royal Brompton Campus
Room 33, Emmanuel Kaye Building
1B Manresa Road
London SW3 6LR
UNITED KINGDOM
Tel: +44 (0)20 7352 8121 ext 3381
Fax: +44 (0)20 7351 8322
Email: r.newson@imperial.ac.uk 
Web page: www.imperial.ac.uk/nhli/r.newson/
Departmental Web page:
http://www1.imperial.ac.uk/medicine/about/divisions/nhli/respiration/pop
genetics/reph/

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

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of
tiago.pereira@incor.usp.br
Sent: 19 June 2008 00:56
To: statalist@hsphsun2.harvard.edu
Subject: st: Question: Option -by- in -eclplot- revisited

Dear Statalisters,

I am using -ecplot- to generate plots of effect sizes and their
confidence
intervals by groups (say group 1 and group 2, applying the option -by-).
However, I would like to generate a x-axis reference line in 10.5 (scale
ranging from 1 to 20) in group  1 and another x-axis reference line in
15.4 in group 2(also in the same scale).

I can accomplish this taks using the option "xline(10.5 15.4,
style(default))", but both panels will have two reference lines. The
objective is exactly to have only one reference line in each panel.

Thank you in advance.

Cheers!

Tiago









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

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