Learn R Programming

dga (version 2.0.2)

circle: A Helper Function Used in venn3

Description

Takes the parameters of a circle and returns points on its perimeter to be plotted to make circles for a venn diagram.

Usage

circle(x, y, r)

Value

inds

the x,y coordinates of the periphery of a circle, to be used in venn3.

Arguments

x

the x coordinate of the center of the circle.

y

the y coordinate of the center of the circle.

r

the radius of the circle

Author

Kristian Lum kl@hrdag.org

Examples

Run this code


plot(dga:::circle(0, 0, 1), type = "l")

Run the code above in your browser using DataLab