remove.close {dga}R Documentation

A Helper Function to Tell Which Points Are Near the Boundary of a Circle

Description

Used in venn3 to tell which of the potential points to be plotted are near the boundary of the circle defned by x, y, and r.

Usage

remove.close(ps, x, y, r)

Arguments

ps

an n x 2 matrix of potential points.

x

the x coordinate of the center of the circle.

y

the y coordinate of the center of the circle.

r

the radius of the circle

Value

inds

tells which points are too close to the edge of the circle.

Author(s)

Kristian Lum kl@hrdag.org

Examples




ps <- cbind(runif(100), runif(100))
inds <- dga:::remove.close(ps, .5, .5, .1)

[Package dga version 2.0.1 Index]