createBoundary: Boundary polygon creation

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/createBoundary.r

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

1

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

1
2
3
4
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)

HRW documentation built on Nov. 23, 2021, 9:07 a.m.

Related to createBoundary in HRW...