Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: Graph options
From
Scott Merryman <[email protected]>
To
[email protected]
Subject
Re: st: Graph options
Date
Tue, 7 Jan 2014 10:26:24 -0600
1. The option -mlabel()- can accept a varlist.
2. Change the rule used for the axis label or with -tlabel()- you can
specify the date range.
For example:
sysuse tsline2,clear
twoway connected lcalories calories day in 1/11, ///
tlabel(01jan2002(2)11jan2002, angle(45)) mlabel(lcalories calories)
twoway connected lcalories calories day in 1/11, ///
tlabel(#10, angle(45)) mlabel(lcalories calories)
Scott
On Tue, Jan 7, 2014 at 10:01 AM, Michael Costello
<[email protected]> wrote:
> I'm working on a connected scatter plot of several outcomes over time.
> The outcomes are on a 0-1 scale. I'd like to label each point in the
> connected scatter plot with the exact y value. Can anyone advise on
> how to do that? I see how to label values with another variable, such
> as country name, but not with the actual y-values. I seem to have
> complicated it by having several outcomes all on one graph.
>
> Additionally, my x-scale is from about September 2013 to the present,
> in the %tcnn/dd/YY format. It currently only displays three tick marks
> (dates) across the bottom of the graph. Is there an easier way to
> increase this number of ticks other than using an option like:
>
> xlabel(1685285043000(1000000000)1704474480000,angle(45))
>
> I hate that format, and it's not intuitive at all.
>
> -Michael
> --
>
*
* 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/