Wednesday, March 01, 2006

Re: st: yscale(alt) and ytitle

On 3/1/06, Margo Schlanger <mschlanger@wulaw.wustl.edu> 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 - nshephard@gmail.com / neilshep@cyllene.uwa.edu.au 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/


Tag:


Links to this post:

Create a Link



<< Home

This page is powered by Blogger. Isn't yours?