Learn R Programming

calibrate (version 1.7.7)

circle: Draw a circle

Description

circle draws a circle in an existing plot.

Usage

circle(radius,origin)

Arguments

radius

the radius of the circle

origin

the origin of the circle

Value

NULL

Examples

Run this code
# NOT RUN {
   set.seed(123)
   X <- matrix(rnorm(20),ncol=2)
   plot(X[,1],X[,2])
   circle(1,c(0,0))
# }

Run the code above in your browser using DataLab