spacecloud()

Description:
Create a scatter plot of square-root or squared differences between variable values at pairs of points versus the distance between the points.

Usage:
spacecloud(point.obj, pairs.obj, v1, v2=v1, type='r', query.a)

Required arguments:
point.obj: a point object generated by point()
pairs.obj: a pairs object generated by pairs()
v1: a variable to plot

Optional arguments:
v2: an optional variable name, if entered the plot will be created between v1 and v2
type: either 'r' for square-root differences or 's' for squared differences
query.a: an optional variable name, if entered, the value of the variable will be displayed on the graphics device for points identified by the user

Value:
NULL

Notes:
When query.a is entered, the user will be prompted to identify points on the display device. Because each point in the plot represents a pair of locations, the user must identify each point twice, once for the "from" point and once for the "to" point. Querying is ended by pressing the middle mouse button on the mouse while the cursor is in the display window.

Examples:
> spacecloud(stations, stations.prs, 'inches')
> spacecloud(stations, stations.prs, 'inches', query.a='id')

S+ GeoStat Introduction OOPLa Data Structures Functions Download

majure