Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.

# Re: st: Question on graph twoway and graph combine

 From Alberto R Osella To statalist@hsphsun2.harvard.edu Subject Re: st: Question on graph twoway and graph combine Date Wed, 07 Dec 2011 11:24:12 +0100

```Thank you Lars

Alberto R. Osella, MD, PhD
Laboratorio di Epidemiologia e Biostatistica
IRCCS Saverio de Bellis
Via Turi, 27
70013 Castellana Grotte (BA)
Italia
Tel:    +39 0804994655
Fax:    +39 0804994650
e-mail: arosella@irccsdebellis.it

Il 07/12/2011 10:57, Lars Folkestad ha scritto:
```
```Im not sure if it has anything to with anything or if in just being silly, but using the by option renders a graph where the groups are seperatet in the same graph, but in the same grid.

Using grc1leg , common y - you get two grids and the groups are visually easier to distinguish.

Mvh

Den 07/12/2011 kl. 10.18 skrev "Nick Cox"<njcoxstata@gmail.com>:

```
```That's good advice, but I don't understand why -by()- couldn't be used
in the first place. What does any estimation process have to do with
graphing?

Nick

On Wed, Dec 7, 2011 at 9:09 AM, Phil Clayton
<philclayton@internode.on.net>  wrote:

```
```You could try -findit grc1leg-

On 07/12/2011, at 8:09 PM, Alberto R Osella wrote:

```
```I'm using Stata 12.0 on W7. I've drawn two graphs (one for each sex) by using -graph twoway- and then I've combined them by using -graph combine-. I've drawn graphics separately because I can't using the by() option as a result of the estimation process. The resulting combine graph has two legends (the same) and I want a graph with only one legend.
```
```*
*   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/
```
```*
*   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/

```
```*
*   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/
```