Learn R Programming

LearnGeom (version 1.5)

SelectPoints: Selection of points from the coordinate plane

Description

SelectPoints allows the selection of points from the coordinate plane

Usage

SelectPoints(n)

Arguments

n

Number of points to select from the current coordinate plane

Value

Returns a vector or matrix which contains the xy-coordinates of the selected points. Each row represents one of the points. If n = 1 the output is a numeric vector, if n = 2 then it is a Segment, and for n > 2 the object is a polygon.

Examples

Run this code
# NOT RUN {
n <- 3
points <- SelectPoints(n)
# }

Run the code above in your browser using DataLab