help diplot-------------------------------------------------------------------------------

Title

diplot-- double interval plot

Syntax

diplotshapeyvarevarxvaruvar[if] [in] [,options]

diplotshapey1vary2varx1varx2var[if] [in],limits[options]where

shapeis one of

rectanglerectangle with sides parallel to axesplusintersecting horizontal and vertical linescapplusas above, but line ends cappeddiamonddiamond, with diagonals parallel to axesbarrowbidirectional arrow

optionsDescription ------------------------------------------------------------------------- Interpretation of variableslimitsvariables are to be interpreted as vertical and horizontal limitsMain plot

shape()affect rendering of shapetwoway_optionsaffect other features of graphAdd plot

addplot(plot)add other plots to the generated graph-------------------------------------------------------------------------

Description

diplotproduces double interval plots using various specified shapes whose vertical and horizontal extents are specified by variables.With the first syntax

diplotproduces symbols extending vertically fromyvar - evartoyvar + evarand horizontally fromxvar - uvartoxvar +uvar.evaranduvarmust contain non-negative values.With the second syntax, flagged by the

limitsoption,diplotproduces symbols extending vertically fromyvar1toyvar2and horizontally fromxvar1toxvar2. Each symbol will have centres at (x1var+x2var)/2, (y1var+y2var)/2.

Options+-----------------------------+ ----+ Interpretation of variables +--------------------------------------

limitsspecifies that the four variables specified are to be interpreted as lower and upper vertical and horizontal limits.+-----------+ ----+ Main plot +--------------------------------------------------------

shape()specifies options that affect rendering of the shapes defining the double intervals. Know that shapesrectangle,plusanddiamondentail calls to twoway pcspike and that shapescapplusandbarrowentail calls to twoway pcbarrow. Thus their options may be specified as appropriate.

twoway_options()are options of graph twoway controlling other features of the graph.+----------+ ----+ Add plot +---------------------------------------------------------

addplot(plot)provides a way to add other plots to the generated graph. Seeaddplot_option.

Examples

. diplot capplus y yerror x xerror, shape(lcolor(blue) mcolor(blue))addplot(scatter y x, color(blue))

. diplot rectangle y1 y2 x1 x2, limits title(y versus x)

AcknowledgmentsVince Wiggins made encouraging noises. Nick Winter helpfully pointed out a silly bug.

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

Also seeManual:

[G] twowayOnline:

twoway