genCircle: Create a sequence of points on a circle

View source: R/genCircle.R

genCircleR Documentation

Create a sequence of points on a circle

Description

This is a helper function that creates a sequence of points on a circle of radius r as a resolution determined by n. This function was directly borrowed from SIBER package (Intended for generating various SIBER ellipses).It is not intended for direct calling. NB not an exported function.

Usage

genCircle(n = 100, r)

Arguments

n

the number of points to create around the circle. Defaults to 100.

r

the radius of the circle to create.

Value

A 2 x n matrix of x and y coordinates of points on a circle.


rKIN documentation built on Oct. 3, 2023, 1:06 a.m.