Bookmark and Share

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

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

st: RE: Saving multiple graphs

From   Nick Cox <>
To   statalist <>
Subject   st: RE: Saving multiple graphs
Date   Fri, 28 Oct 2011 16:16:34 +0100

Well, yes: You got what you asked for! After the first, each new graph overwrote the existing graph file. When the loop finishes, it contains the last graph created. 

There are several of ways of getting or seeing them one at a time; you need to be more precise about what you want. 

The answer to the last question is -graph matrix-. 


Nicola Winder

Does anyone know of a way to produce and save a matrix or series of graphs?
I am simply wanting to examine the Q-Q plots of 40 variables and have 
tried the following:

foreach y of varlist bwkg length pondi hcn man ssn trn  {
qnorm `y'
qui graph export "f:/Nicola/SWS_India2/qnorm.png", replace

The loop works fine but the plots literally flash up and only the last 
plot is exported. Also these plots are only exploratory and will not be 
published so the quality does not matter.

Also in R it is possible to use pairwise scatter var1 var2 var3 var4 etc 
to get a matrix of scatter plots does Stata do anything like this for 
exploratory purposes?

Many thanks in advance for your help!
(I am using Stata version 11.1 windows XP)

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index