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]

RE: st: Rotate labels of ticks in time series graphic


From   "David Radwin" <dradwin@mprinc.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: Rotate labels of ticks in time series graphic
Date   Mon, 6 Jun 2011 11:24:56 -0700 (PDT)

I think you want the angle(vertical) option under -xlabel- . An example:

. sysuse uslifeexp

. keep if year>1994

. twoway (line le year), xlabel(, angle(vertical))

Vertical labels can be harder to read. An alternative for a long time annual 
time series is to label only, say, every fifth or tenth year.

David
--
David Radwin
Research Associate
MPR Associates, Inc.
2150 Shattuck Ave., Suite 800
Berkeley, CA 94704
Phone: 510-849-4942
Fax: 510-849-0794

www.mprinc.com


> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-
> statalist@hsphsun2.harvard.edu] On Behalf Of drreg@earthlink.net
> Sent: Monday, June 06, 2011 11:15 AM
> To: statalist@hsphsun2.harvard.edu
> Subject: Re: st: Rotate labels of ticks in time series graphic
>
> Check out the angle() option under -ylabel-.
>
> Hope this helps.
>
> reg
>
> -----Original Message-----
> >From: Barbara Engels <engels.ba@gmail.com>
> >Sent: Jun 6, 2011 1:57 PM
> >To: statalist@hsphsun2.harvard.edu
> >Subject: st: Rotate labels of ticks in time series graphic
> >
> >Dear Statalist,
> >
> >I am sorry to bother you with this quite trivial questions, but I have
> been searching without success ...
> >
> >I have a time series graphic with years on the x-axis  ... I need the
> years to be rotated, so that I can make ticks for every year.
> Horizontially as they are by default, they overlap each other...
> >
> >Thanks for your help!
> >
> >Barbara

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