Learn R Programming

mathart (version 0.0.0.9000)

triangulate: Create a triangulation for a given set of points

Description

Creates a triangulation for a given set of points (wrapper for deldir)

Usage

triangulate(points)

Arguments

points

A data frame with point x and y coordinates

Value

A data frame with segment x, y, xend and yend coorindates

Details

A simple wrapper for deldir::deldir()

Examples

Run this code
# NOT RUN {
data.frame(x = runif(10), y = runif(10)) %>% triangulate()
# }

Run the code above in your browser using DataLab