Statalist The Stata Listserver


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

st: RE: Graphs by and different axis scales [Stata 9]


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: Graphs by and different axis scales [Stata 9]
Date   Tue, 26 Jun 2007 21:30:33 +0100

Yes. Save each graph and then combine. 

Nick 
[email protected] 

R.E. De Hoyos
 
> I am plotting a two-way graph of varX and varY by years (4 years):
> 
>     . tw scatter varY varX, by(year)
> 
> Y varies so much across the 4 time periods that Stata assigns 
> a very large 
> range of variation to Y, say from -100 to +100 for all four 
> years. For any 
> given year, the variation in Y is much less than -100 to 
> +100, so I would 
> like to have a year-specific axis range. An obvious way of 
> doing this is to 
> compute separate graphs for each year:
> 
>  foreach y in 1 2 3 4 {
>     tw scatter varY varX if year==`y'
> }
> 
> Nevertheless I would like to have the four graphs in a single 
> object (.eps). 
> Is there a way to do this?

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