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: My axis(2)-title is ignored when using by() in twoway scatter?


From   Nick Cox <[email protected]>
To   [email protected]
Subject   Re: st: My axis(2)-title is ignored when using by() in twoway scatter?
Date   Mon, 24 Oct 2011 08:38:07 +0100

I usually get -yaxis()- and -axis()- the wrong way round the first
time I do it. What is apparently missing here is a declaration
-yaxis(1 2)-. That may help.

Nick

On Sun, Oct 23, 2011 at 11:41 PM, Kim Lyngby Mikkelsen <[email protected]> wrote:

> In  twoway scatter, when using the  by() option, yti("My title",
> axis(2)) is innored?
> Is there anyway to have the "axis(2)"-titel displayed?
>
> My by-variable is gender, that is, with 2 categories.
>
> My code is:
> scatter proportion_m   year_op2 if alder_op10==80, sort msymbol(none)
> connect(l) || ///
> scatter proportion_m   year_op2 if alder_op10==90, sort msymbol(none)
> connect(l) || ///
> scatter mean_age_op year_op2                              , sort
> msymbol(none) connect(l) yaxis(2) ylab(72(2)78, axis(2)) || ///
> , by(gender, legend(off) note("") ti("No. of operations, and mean age
> at operation, by gender"))  ///
> yti("No. of operations (per 1000)", axis(1)) yti("Mean age at
> operation", axis(2))
>
> The axis(2)-title ("Mean age at operation") is ignored!
> If I remove the by()-option, both y-titles are displayed!
>
> How can I have it displayed when using the by()-option?
>
> I an using Stata 12, win7

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