**help gr7twoway** (out-of-date command)
-------------------------------------------------------------------------------

__Warning__

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 two-way scatterplots (____graph7, twoway____ command)__

{**graph7** | **gr7**} [*varlist*] [*weight*] [**if** *exp*] [**in** *range*]**,** __t__**woway**
[*common_options* __j__**itter(***#***)** __r__**escale** __rb__**ox** {__y__|__x__|__r__}__r__**everse**]

*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**.

__Description__

**graph7** *...* **, twoway** *...* specifies a two-way scatterplot; this is the
default for **graph7** when more than one variable is specified. **twoway** may
be combined with **oneway** (see gr7oneway) or **box** (see gr7box), but in that
case, you must specify **twoway** explicitly.

For an introduction to **graph7**, see **graph7**.

__Options unique to ____twoway__

**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.)

**rescale** scales each y-variable independently. If there are two
y-variables, the scale of the first is presented on the left (x) axis
and the scale for the second on the right (r) axis. If there are
more than two y-variables, no vertical scale is labeled.

**rbox** places a rangefinder box plot on the graph.

{**y**|**x**|**r**}**reverse** reverses the indicated scale to run from high-to-low.

__Examples__

Since **twoway** is the default for **graph7** with more than one variable:

**. graph7 y x** (graphs y against x)

**. graph7 y1 y2 x** (graphs y1 and y2 against x)

Here are more involved examples:

**. gr7 mpgfor mpgdom weight, xlog ylab xlab l1("Mileage (mpg)")**

**. gr7 clnsl herd time, c(ll) rescale ysca(2000,3500) rsca(700,1100)**
**ylab(2500(250)3500) rlab(700(50)900) xlab(1967(1)1975) t1(U.K.**
**Pig Production)**

This one additionally uses the **box** style:

**. gr7 mpg displ, two box rbox ylab xlab border**

__Also see__

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

Option Graph type See help
----------------------------------------------------
__hi__**stogram** histogram gr7hist
__m__**atrix** Two-way scatterplot matrix gr7matrix
__o__**neway** One-way scatterplot gr7oneway
__b__**ox** Box-and-whisker plot gr7box
__st__**ar** Star chart gr7star
__ba__**r** Bar chart gr7bar
__p__**ie** Pie chart gr7pie
----------------------------------------------------

Help: **[G-2] graph7**, gr7axes, gr7color, gr7other, gr7sym; **[R]**
**diagnostic plots**