Learn R Programming

contourPlot (version 0.2.0)

circle: Create a Set of Circle Co-Ordinates

Description

Creates a set of circle co-ordinates, of radius r, at position x,y

Usage

circle(x, y, r = 1)

Arguments

x

x position of the center of the circle

y

y position of the center of the circle

r

radius of the circle

Value

Matrix of x,y co-ordinates for a circle

Examples

Run this code
# NOT RUN {
plot(circle(0, 0, r = 1), type = 'l', asp = 1)
# }

Run the code above in your browser using DataLab