07.02.2014 Views

Introduction to Stata 8 - (GRIPS

Introduction to Stata 8 - (GRIPS

Introduction to Stata 8 - (GRIPS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

graph matrix<br />

10 20 30 40<br />

graph matrix<br />

150 200 250<br />

15,000<br />

Price<br />

10,000<br />

40<br />

5,000<br />

30<br />

20<br />

Mileage<br />

(mpg)<br />

10<br />

250<br />

Weight<br />

(lbs.)<br />

5,000<br />

4,000<br />

3,000<br />

2,000<br />

200<br />

150<br />

5,000 10,000 15,000<br />

2,0003,0004,0005,000<br />

Length<br />

(in.)<br />

// c:\dokumenter\...\gph.matrix.do<br />

sysuse au<strong>to</strong> , clear<br />

set scheme lean1<br />

graph matrix price mpg weight length ///<br />

, ///<br />

title(graph matrix) ///<br />

mlwidth(*0.7) ///<br />

xsize(5) ysize(4)<br />

Matrix scatterplots are useful for analysis, but are infrequently used for publication.<br />

The lean1 and lean2 schemes by default use a small hollow circle as marker in matrix<br />

scatterplots. Here mlwidth(*0.7) made the marker outline thinner.<br />

The upper right cells are redundant mirror images (actually rotated mirror images) of the<br />

lower left cells; omit them by:<br />

graph matrix price mpg weight length , half<br />

51

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!