Removes points interactively from a spatial point pattern (M.A. Mugglestone, S.A. Harding, B.Y.Y. Lee, P.J. Diggle & B.S. Rowlingson).
|What to print (
||Which graphics window to use for the plot; default 1|
||Vertical coordinates of each spatial point pattern; no default – this parameter must be set|
||Horizontal coordinates of each spatial point pattern; no default – this parameter must be set|
||Variates to receive the vertical coordinates of the original points minus the deleted points of each pattern|
||Variates to receive the horizontal coordinates of the original points minus the deleted points of each pattern|
PTREMOVE uses the
DREAD directive to delete points from a spatial point pattern. The coordinates of the existing points must be supplied using the parameters
OLDY. These points will be plotted on the current graphics device using
DPTMAP with a pen setting of
WINDOW option may be used to specify the graphics window to use for the plot.
The operation of
DREAD may vary slightly from one system to another. The Users’ Note supplied with Genstat explains how to read points and terminate input on specific devices. The usual method for reading points is to click the left mouse button at the required position. The usual way to terminate input is to click the right mouse button. The points read using
DREAD will be echoed using a pen setting of
SYMBOLS=2. The coordinates of the new spatial point pattern containing the original points minus any points which have been deleted may be saved using the parameters
Printed output is controlled using the
monitoring (which prints the coordinates of the points to be deleted) and
summary (which prints the coordinates of the new pattern consisting of the original points minus any that have been deleted under the headings
NEWY). The default setting is for both monitoring and summary.
PTCHECKXY is called to check that
OLDY have identical restrictions.
DPTMAP is then used to draw a map of the original point pattern. The
DREAD directive is used to read the coordinates of points to be deleted. Finally, the coordinates for the deleted points are removed from the original points using the
SUBSET procedure and the coordinates of the undeleted points are stored in new variates.
OLDY are restricted, only the subset of values specified by the restriction will be included in the calculations.
CAPTION 'PTREMOVE example'; STYLE=meta CALCULATE x,y = URAND(531647,0; 50) PTREMOVE OLDY=y; OLDX=x