Learn R Programming

PlotRegionHighlighter (version 1.0)

createCircle: A set of points defining a circle or an arc

Description

A set of xy coordinates defining a circle or an arc on the circle

Usage

createCircle(center, r, n = 40, begin = 0, end = 2 * pi)

Arguments

center
a two-item vector of the x and y coordinates of the circle center
r
a numeric value defining the radius of the circle
n
a numeric value defining the number of points on the circle
begin
a numeric value for the starting angle of the circle or arc in radians
end
a numeric value for the ending angle of the circle or arc in radians

Value