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 on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Re: how to format ylabels in sts graph


From   Caleb Southworth <caleb.southworth@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: Re: how to format ylabels in sts graph
Date   Wed, 1 May 2013 08:15:25 -0700

OK, I am answering my own question: Add the format to the -ylabel- not to -per-

sts graph,  xlin(912, lpat(dash)) xlin(352, lpat(dot) lw(thick))
xlab(0(150)1500, angle(45)) ylab(,angle(0) format(%9.0f)) per(100)

On Wed, May 1, 2013 at 8:10 AM, Caleb Southworth
<caleb.southworth@gmail.com> wrote:
> sts graph defaults to proportions. Adding the option -per(100)-
> changes the units on the yaxis to 100s. However the format is %9.1f
> and I would like %9.0f (no decimal point).
>
> (1) Is there a way to alter the format of the -per(#)- option?
>
> (2) Can I get % signs after those ylabels?
>
> Here's my syntax:
>
> sts graph,  xlin(912, lpat(dash)) xlin(352, lpat(dot) lw(thick))
> xlab(0(150)1500, angle(45)) ylab(,angle(0)) per(100)
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index