createBoundary {HRW}R Documentation

Boundary polygon creation

Description

Create a boundary polygon corresponding nominally to the effective probability density support of a bivariate dataset via an interactive graphical interface and mouse (or, possibly, touchpad) posititionings and button clicks.

Usage

createBoundary(x,y)

Arguments

x

vector containing the x-coordinates of a bivariate dataset.

y

vector containing the y-coordinates of a bivariate dataset.

Details

After the bivariate dataset is displayed on the screen a boundary polygon is selected by performing left mouse (or, possibly, touchpad) clicks on the screen to specify vertex positions, and then moving around in a clockwise direction until the polygon is completed. Completion is achieved by clicking inside the red octagon surrounding the starting vertex.

Value

A two-column matrix containing the vertices of the selected boundary polygon.

Author(s)

M.P. Wand matt.wand@uts.edu.au

See Also

pointsInPoly

Examples

library(HRW)
x <- c(4,1,9,8,3,9,7)
y <- c(5,7,5,4,2,1,1)
## Not run: myBoundary <- createBoundary(x,y)

[Package HRW version 1.0-5 Index]