Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

st: graph axis scale


From   Rodrigo Briceño <[email protected]>
To   [email protected]
Subject   st: graph axis scale
Date   Wed, 12 Jan 2011 15:40:57 -0600

Hello statalisters. I'm using Stata 9.2 and windows XP. I have written
the following syntax in order to produce a set of twoway line graphs.
Everything works perfect except that the X-Scale of all the 10 series
used is the same (from 1 to 1112). My problem is that not all the 10
series have the 1112 values (only 5 of them have all the 1112 values).
Is there a way to modify the graphs to show only the range of valid
values? I have structured my data file in a panel form. Thanks for
your help.

gen resid = .
foreach i of local isin {
quietly regress liq `X' if isin2==`i'
predict ehat`i' if e(sample), res
twoway (tsline ehat`i'), name (gr_`b`i'')
graph export "D:\data\grafico_isin_`i'.wmf", replace
list ehat`i' if isin2==`i'
}

-- 
Rodrigo Briceño
Economist
[email protected]
MSN: [email protected]
SKYPE: rbriceno1087

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


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index