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


From   Nick Cox <njcoxstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
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 <epidat@gmail.com> 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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index