generateEquiDistantPointsOnCircle: Generate equidistant points on a circle

Description Usage Arguments Value

View source: R/radarChart.R

Description

Function used by radarChart() to create the locations for the skills axes

Usage

1
generateEquiDistantPointsOnCircle(nPoints, radius = 1, origin = c(0, 0))

Arguments

nPoints

Integer for the number of points to position on circle

radius

Numeric value for the radius of the circle. Default value is 1.

origin

Numeric vector of length 2 that provides the origin coordinates of the circle. Defaults to c(0,0)

Value

Returns a data.frame of the X and Y coordinates of points around the circle.


JosephCrispell/plotteR documentation built on June 6, 2021, 7:24 p.m.