circle: generating a circle

View source: R/shape_generator.R

circleR Documentation

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

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

ggVennDiagram documentation built on Aug. 14, 2023, 5:09 p.m.