Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: How to append one graph to another,


From   [email protected]
To   [email protected]
Subject   st: How to append one graph to another,
Date   Fri, 28 Sep 2007 17:58:18 -0300 (BRT)

> I want to put 40 graphs, one below the other, into a Word document.  I
can  > do this by drawing a graph, then selecting, copying and pasting
it into     > Word, and then repeating this 39 times.  But there must (I
hope) be a         > quicker way of doing this.  Suggestions please!

> Thanks.

> Steve

----------------------------------------------------------------------
Dear Steve,

Yes, there is options depending on the type of graph you are working with.

For example, suppose you are interested in scatter plots (var 1 vs var2)
and have 40 groups (var3), so that your aim is to obtain a scatter plot
for each of the 40 groups, but all in only one collum (one below the
other).

You can type:

scatter var1 var2, by(var3, cols(1))

This will be also valid for other types of graphs( pies, histograms, among
others).

If you are working with a program that does not have the option -by-, your
task will not be straighforward. However, you can use -graph combine-:
findit graph combine (too see further information).

Tiago



*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index