Learn R Programming

ggVennDiagram (version 1.2.2)

circle: generating a circle

Description

generating a circle

Usage

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

Value

a matrix representing circle coordinates

Arguments

x, y

center of circle

r

radius of circle

n

number of points for polygon object (resolution)

Examples

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

Run the code above in your browser using DataLab