Statalist


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

Re: st: Re: Formatting a twoway graph with different scaled y axes


From   "Austin Nichols" <austinnichols@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Re: Formatting a twoway graph with different scaled y axes
Date   Mon, 8 Dec 2008 15:08:59 -0500

Note axis() is a suboption of yscale():
 yscale(ra(0) axis(2))
As for the labeling of every point on both graphs (bar and line), I
leave the programming of that chartjunk to others... and predict the
results will be painful to look at.

On Mon, Dec 8, 2008 at 2:57 PM, Martin Weiss <martin.weiss1@gmx.de> wrote:
> Try http://www.stata-journal.com/sjpdf.html?articlenum=gr0019
>
>
> HTH
> Martin
> _______________________
> ----- Original Message ----- From: "René Geppert"
> <geppert.rene@googlemail.com>
> To: <statalist@hsphsun2.harvard.edu>
> Sent: Monday, December 08, 2008 8:45 PM
> Subject: st: Formatting a twoway graph with different scaled y axes
>
>
>> Hi, I am using Stata/SE 10 for Windows.
>>
>> I generated a graph using the following (simplified) code:
>>
>> . twoway (bar var1 Quarter, yaxis(1) yscale(range(0))) (line var2 Quarter,
>> yaxis(2) )

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index