Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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

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

ggVennDiagram

A 'ggplot2' Implement of Venn Diagram

v1.1.0
GPL-3
Authors
Chun-Hui Gao [aut, cre] (<https://orcid.org/0000-0002-1445-7939>), Guangchuang Yu [ctb] (<https://orcid.org/0000-0002-6485-8781>), Adrian Dusa [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.