Learn R Programming

ggVennDiagram (version 1.1.4)

circle: generating a circle

Description

generating a circle

Usage

circle(x = 0, y = 0, r = 1, n = 100)

Arguments

x, y

center of circle

r

radius of circle

n

number of points for polygon object (resolution)

Value

a matrix representing circle coordinates

Examples

Run this code
# NOT RUN {
# plot the default circle
library(ggVennDiagram)
library(sf)
circle() %>% st_linestring() %>% plot()
# }

Run the code above in your browser using DataLab