Learn R Programming

circleplot (version 0.4.1)

make_circle: Generate coordinates of points on the circumference of a circle

Description

This function is used to generate point locations in circleplot; but can also be useful for adding furter points and labels to an existing plot.

Usage

make.circle(n, alpha, k)

Arguments

n

The number of points to place on the circumference

alpha

Angle (in degrees) by which to rotate point coordinates. Defaults to 22.91 (0.4 radians)

k

The radius; defaults to one

Value

Returns a data.frame with x & y coordinates, as well as the angle (in radians) of that point from the origin.