View source: R/shape_generator.R
circle | R Documentation |
generating a circle
circle(x = 0, y = 0, r = 1, n = 100)
x, y |
center of circle |
r |
radius of circle |
n |
number of points for polygon object (resolution) |
a matrix representing circle coordinates
# plot the default circle
library(ggVennDiagram)
library(sf)
circle() %>% st_linestring() %>% plot()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.