README.md

circlr

R build status codecov

An R package for encircling a set of points with a smooth (round-edged) convex hull in 2D using (quadratic) Bezier curves or semicircles.

Installation

devtools::install_github('paasim/circlr')

Usage example

library(circlr)
library(ggplot2)
data <- data.frame(x = rnorm(5), y = rnorm(5))
circ <- circle(data, closed = TRUE)
ggplot(circ) + geom_path(aes(x = x, y = y))


paasim/circlr documentation built on Oct. 3, 2023, 4:50 a.m.