help twoway pcscatter dialog: twoway
-------------------------------------------------------------------------------
Title
[G] graph twoway pcscatter -- Paired-coordinate plot with markers
Syntax
twoway pcscatter y1var x1var y2var x2var [if] [in] [, options]
options description
---------------------------------------------------------------------
marker_options change look of markers (color, size, etc.)
marker_label_options add marker labels; change look or position
headlabel label second coordinate, not first
vertical orient plot naturally; the default
horizontal orient plot transposing y and x values
axis_choice_options associate plot with alternative axis
twoway_options titles, legends, axes, added lines and text,
by, regions, name, aspect ratio, etc.
---------------------------------------------------------------------
All explicit options are unique; see repeated options.
Menu
Graphics > Twoway graph (scatter, line, etc.)
Description
twoway pcscatter draws markers for each point designated by (y1var,
x1var) and for each point designated by (y2var, x2var).
Options
marker_options specify how the markers look, including shape, size,
color, and outline; see [G] marker_options. The same marker is used
for both sets of points.
marker_label_options specify if and how the markers are to be labeled;
see [G] marker_label_options.
headlabel specifies that labels be drawn on the markers of the
(y2var,x2var) points rather than on the markers of the (y1var,x1var)
points. By default, when the mlabel() option is specified, labels
are placed on the points for the first two variables -- y1var and
x1var. headlabel moves the labels from these points to the points
for the second two variables -- y2var and x2var.
vertical and horizontal specify whether the y and x coordinates are to be
swapped before plotting -- vertical (the default) does not swap the
coordinates, whereas horizontal does.
These options are rarely used when plotting only paired-coordinate
data; they can, however, be used to good effect when combining
paired-coordinate plots with range plots, such as twoway rspike or
twoway rbar.
axis_choice_options associate the plot with a particular y or x axis on
the graph; see [G] axis_choice_options.
twoway_options are a set of common options supported by all twoway
graphs. These options allow you to title graphs, name graphs,
control axes and legends, add lines and text, set aspect ratios,
create graphs over by() groups, and change some advanced settings.
See [G] twoway_options.
Remarks
Visually, there is no difference between
. twoway pcscatter y1var x1var y2var x2var
and
. twoway scatter y1var x1var || scatter y2var x2var, pstyle(p1)
though in some cases the former is more convenient and better represents
the conceptual structure of the data.
The two scatters are presented in the same overall style, meaning that
the markers (symbol shape and color) are the same.
Also see
Manual: [G] graph twoway pcscatter
Help: [G] graph twoway; [G] graph twoway scatter; [G] graph twoway
rscatter; [G] graph twoway pcspike, [G] graph twoway pccapsym,
[G] graph twoway pcarrow, [G] graph twoway pcbarrow, [G] graph
twoway pci