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 <btw1@columbia.edu> 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/