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]

Re: st: multiple y-axes


From   Scott Merryman <[email protected]>
To   [email protected]
Subject   Re: st: multiple y-axes
Date   Thu, 2 Sep 2010 07:04:53 -0500

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
<[email protected]> 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/


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