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 at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st: plotting a variable for the whole data


From   Nick Cox <njcoxstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: plotting a variable for the whole data
Date   Mon, 11 Apr 2011 14:07:32 +0100

I am not clear why -overlay- is not what you want. But try

. line myvar time

That could be a mess, depending on sort order.

. tsset id time
. line myvar time, c(L)

often helps.

. scatter myvar time

is always possible.

Nick

On Mon, Apr 11, 2011 at 2:01 PM, Humaira Asad <humairaasad@hotmail.com> wrote:

> How can I plot a variable over time in one diagram, because when i use xtline etc it shows all the panels separately or "overlay" shows all the graphs in one. I want one graph for the whole data together not for panels separately.
*
*   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