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: number of dates in x axis


From   Maria Ana Vitorino <vitorino@wharton.upenn.edu>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: number of dates in x axis
Date   Mon, 23 May 2011 23:45:26 -0400

Dear StataList users:

I have the following data:


    +------------------------+
    | Person   Weight      Date    |
    |------------------------|
 1. |  Name1       50      17988  |
 2. |  Name1       55      18110  |
 3. |  Name1       50      18141  |
 4. |  Name1       45      18171  |
 5. |    ...        .      . |
    |------------------------|
 6. |  Name2       85      18110 |
 7. |  Name2       88      18171 |
 8. |  Name3       68      17988 |
 9. |    ...        .                       . |
10. |     ..        .      .                 |
    |------------------------|
11. |  NameN        .               . |
    +------------------------+

The labels for the date variables are the months' names (plus year) (e.g. "jan2006", "feb2007", etc)

If I do something like:

xtline Weight , overlay  i(Person) t(Date) xlab(, valuelabel)

The month names show up on the xaxis BUT only every 6 months or so. How can I control the number of "ticks" (AND month names ) that show up on the x-axis? (suppose I want a tick every 2 months or even every month)

Thanks in advance,

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