Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

RE: st: multiple y-axes


From   "Kieran McCaul" <Kieran.McCaul@uwa.edu.au>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: multiple y-axes
Date   Fri, 3 Sep 2010 08:41:46 +0800

...

thanks Scott, that did th etrick

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Scott Merryman
Sent: Thursday, 2 September 2010 8:05 PM
To: statalist@hsphsun2.harvard.edu
Subject: Re: st: multiple y-axes

sysuse auto
twowy hist mpg, yscale(alt axis(1)) || line weight mpg, sort yaxis(2)
yscale(alt axis(2))

Scott


On Wed, Sep 1, 2010 at 11:54 PM, Michael N. Mitchell
<Michael.Norman.Mitchell@gmail.com> wrote:
> Well, that is what happens when you suggest an idea without trying it. I am
> stumped on this, because the documentation says -yscale(alt)- should switch
> the position of the y axis from right to left (or vice versa), but I cannot
> find any combination of -yaxis()- and -yscale()- that will solve this.
> Although this is not a fun suggestion, you could use the graph editor,
> choosing the -grid edit- mode to move the axis from the left to the right,
> and then from the right to the left. I bet, however, someone else has a
> better idea!
>
> Michael N. Mitchell
> Data Management Using Stata      - http://www.stata.com/bookstore/dmus.html
> A Visual Guide to Stata Graphics - http://www.stata.com/bookstore/vgsg.html
> Stata tidbit of the week         - http://www.MichaelNormanMitchell.com
>
>
>

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

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