Stata 15 help for gr7matrix

help gr7matrix (out-of-date command) -------------------------------------------------------------------------------


This help file documents the old version of Stata's graph command. See graph for the modern version.

Stata runs the old version of graph whenever graph is invoked under version control (see version) or when you use the graph7 or gr7 command.

Graph scatterplot matrices (graph, matrix command)

{graph7 | gr7} [varlist] [weight] [if exp] [in range], matrix [common_options half jitter(#)]

common_options See help ------------------------------------------------------ title and axes options gr7axes symbol and line options gr7sym color and shading options gr7color saving, printing, & multiple image options gr7other ------------------------------------------------------

by is allowed; see by.


graph7 ... , matrix ... specifies a scatterplot matrix. Up to 30 variables may be specified. For an introduction to graph7, see graph7.

Options unique to matrix

half draws only the lower half of the matrix

jitter(#) adds spherical random noise to each point before graphing, where # represents the magnitude of the noise as a percent of graphical area. The default is jitter(0). jitter(5) is a large amount. (This is useful to keep categorical data from overplotting.)


. graph7 w x y z, matrix

. graph7 tempjan tempjuly heatdd cooldd, matrix label sy(.)

. graph7 mpg-gear_ratio, matrix half nolabel sy(.)

. graph7 mpg rep78 weight displ, mat lab s(.) c(s) bands(9)

Also see

The eight graph7 types are specified as options. The other seven types are

Option Graph type See help ---------------------------------------------- histogram histogram gr7hist twoway Two-way scatterplot gr7twoway oneway One-way scatterplot gr7oneway box Box-and-whisker plot gr7box star Star chart gr7star bar Bar chart gr7bar pie Pie chart gr7pie ----------------------------------------------

Help: [G-2] graph7, gr7axes, gr7color, gr7other, gr7sym

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