------------------------------------------------------------------------------- help forcpyxplot-------------------------------------------------------------------------------

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

cpyxplotyvarlistxvarlist[weight] [ifexp] [inrange] [,plottype(plottype)graph_optionscombine(combine_options)]

Description

cpyxplotproduces an array of scatter or other twoway plots foryvarlistversusxvarlist. There is one plot for eachyvariable fromyvarlistand eachxvariable fromxvarlist. The namecpyxplotis derived from Cartesian product ofyandx.cpmay also be interpreted as `cross pairs'. The backslash\must be used to separate theyvarlistand thexvarlist.A neat arrangement of the individual graphs is produced if the number of

yvariables is equal to the number ofxvariables, or the number ofyvariables is 1, or the number ofxvariables is 1.

Options

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

graph_optionsare options allowed with scatter (or ifplottype()is specified) with twowayplottype.

combine()specifies options allowed with graph_combine.

Examples

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

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

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

Also seeOn-line: help for twoway