-------------------------------------------------------------------------------
help for cpyxplot
-------------------------------------------------------------------------------

Scatter (or other twoway) plots for each y vs each x variable

cpyxplot yvarlist xvarlist [weight] [if exp] [in range] [ , plottype(plottype) graph_options combine(combine_options) ]

Description

cpyxplot produces an array of scatter or other twoway plots for yvarlist versus xvarlist. There is one plot for each y variable from yvarlist and each x variable from xvarlist. The name cpyxplot is derived from Cartesian product of y and x. cp may also be interpreted as `cross pairs'. The backslash \ must be used to separate the yvarlist and the xvarlist.

A neat arrangement of the individual graphs is produced if the number of y variables is equal to the number of x variables, or the number of y variables is 1, or the number of x variables is 1.

Options

plottype() specifies a twoway plottype that may be used to plot y versus x. The default is scatter. Possibilities include line, connected and lowess.

graph_options are options allowed with scatter (or if plottype() is specified) with twoway plottype.

combine() specifies options allowed with graph_combine.

Examples

. cpyxplot y1 y2 y3 \ x1 x2 x3 . cpyxplot srunoff \ srain17 srain23 srain60, combine(row(1))

Author

Nicholas J. Cox, University of Durham, U.K. n.j.cox@durham.ac.uk

Acknowledgements

Rory Wolfe suggested the original problem. Phil Ender alerted me to a bug. Pete Watt made a helpful suggestion.

Also see

On-line: help for twoway