Learn R Programming

henna (version 0.3.4)

pointsOnCircle: Generate the coordinates of points on a circle centered at origin

Description

This function generates nPoints on a circle of radius r centered at origin.

Usage

pointsOnCircle(r, nPoints, seed = 50)

Value

A data frame with the coordinates of the points.

Arguments

r

Radius.

nPoints

Number of points.

seed

Random seed.