Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: yscale(alt) and ytitle


From   "Neil Shephard" <[email protected]>
To   [email protected]
Subject   Re: st: yscale(alt) and ytitle
Date   Wed, 1 Mar 2006 13:48:52 +0800

On 3/1/06, Margo Schlanger <[email protected]> wrote:
> I'm hoping this is a really easy one.
>
> I'm thinking about having a graph with the yaxis on the right.  That's
> easy; yscale(alt).  But when I try to label the axis  --
> ytitle("WHATEVER"), that label shows up on the left.  This is true
> whether I put the ytitle before or after the yscale.
>
> Any thoughts?  Help is greatly appreciated.
>
> My particular syntax is:
>
> hist num if [some stuff here], ytitle("TITLE") yscale(alt)
> xtitle("TITLE") xlabel(1 3 6) percent by (prison, year, cols(4) holes(1)
> ixaxes

I think you need to use the axis(#) option to specify the axis number
you wish the title to apply to.  Adding...

hist num if [some stuff here], ytitle("TITLE", axis(#)) yscale(alt)
xtitle("TITLE") xlabel(1 3 6) percent by (prison, year, cols(4)
holes(1) ixaxes

...replacing # with the appropriate number between 1 and 9.

. man axis_title_options

and

. man axis_choice_options

should help clarify.

HTH's,

Neil
--
"There is always an easy solution to  every...problem - neat,
plausible, and wrong." - H. L. Mencken

Email - [email protected] / [email protected]
Website - http://slack.ser.man.ac.uk/
Blog - http://slack---line.blogspot.com/
Flickr - http://www.flickr.com/photos/slackline/

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index