Statalist The Stata Listserver


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

Re: st: RE: Two Axis Graphing


From   Thomas Speidel <[email protected]>
To   [email protected]
Subject   Re: st: RE: Two Axis Graphing
Date   Tue, 11 Jul 2006 14:01:20 -0600

... or try putting the title within the first graph:

twoway (scatter y x, ... title("title"))

or try using the || sign to overlay the graphs.

Thomas

Quoting Nick Cox <[email protected]> Tue Jul 11 13:46:06 2006:

Hmm. I hate that (graph) (graph) notation, which reminds
me that I never got into LISP or Scheme programming
seriously.

I think you've confused Stata. Try putting a comma
in front of the -title()- option.

Nick
[email protected]

P.S. one parenthesis, two parentheses.

Benjamin Allaire

I have a question regarding two axis graphing.  I've
specified the action
below - I tried to mimic the help file in stata, but I can't
figure out wha=
t
I've done wrong I keep getting an error.

#delimit;
twoway  (scatter p90_10 year, c(l) ms(O) lp(l) yaxis(1))
          (scatter p90_50 year, c(l) ms(O) lp(-) yaxis(1))
          (scatter mean   year, c(l) ms(O) lp(_) yaxis(2))
          (scatter median year, c(l) ms(O) lp(.) yaxis(2))
title("Figure 1")
subtitle("Inequality in Major League Baseball Salaries
1985-2005")
;
#delimit cr

) required
r(100);

I'm just confused about what to do (I've tried putting extra
parenthesis
everywhere!).
*
*   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/



--
Thomas Speidel
Statistical Associate
Clinical Trials Unit
Tom Baker Cancer Centre
1331 - 29th Street N.W.
Calgary, AB, T2N 4N4

Tel. (403) 521-3370
Email: [email protected]


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