Bookmark and Share

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: question about graph by()


From   Nick Cox <[email protected]>
To   [email protected]
Subject   Re: st: question about graph by()
Date   Mon, 28 Jan 2013 21:34:00 +0000

graph twoway scatter y x if inrange(id, 1, 6), by(id)

graph twoway scatter y x if inrange(id, 7, 12), by(id)

You can omit -graph twoway-.

Nick

On Mon, Jan 28, 2013 at 9:28 PM, B. Timothy Walsh <[email protected]> wrote:

> I am successfully using
>
> graph twoway scatter y x, by(id)
>
> to produce a graph which combines individual graphs for all id's.
>
> The problem is that there are more graphs on the resulting combined graph
> than I would like. Is there a way to restrict the number of graphs combined
> to a specific number, like 6? So graphs for id's 1-6 would be on one graph,
> 7-12 on another, etc.
*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index