polygon_circles: Make polygon_list circles

polygon_circlesR Documentation

Make polygon_list circles

Description

Make polygon_list circles

Usage

polygon_circles(xcenter, ycenter, setnames = NULL, radius = 1, n = 60, ...)

Arguments

xcenter, ycenter

numeric vector that defines the x and y coordinate position of the center of each circle.

setnames

vector that contains names for each circle, stored as names() for each polygon. When setnames is NULL then index numbers are used.

radius

numeric vector that defines the radius of each circle. This vector is recycled to length(xcenter).

n

integer value indicating the number of subdivisions to use in the circle.

...

additional arguments are ignored.

Details

This function creates one or more circles as polygon_list list objects.

Value

object list with a number of circles encoded as polygons.

See Also

Other venndir polygons: bbox_polygon_list(), eulerr_to_polygon_list(), get_largest_polygon_list(), get_venn_polygon_shapes(), intersect_polygon_list(), labelr_polygon_list(), minus_polygon_list(), nudge_polygon_coords(), nudge_polygon_list(), plot_polygon_list(), polygon_areas(), polygon_ellipses(), polygon_list_labelr(), polygon_list_to_xy_list(), rescale_polygon_list(), simple_ellipse(), union_polygon_list(), xy_list_to_polygon_list()

Examples

polygon_list <- polygon_circles(c(3, 2), c(2, 3))
plot_polygon_list(polygon_list)
points(x=c(3, 2), y=c(2, 3), pch=c("1", "2"), add=TRUE);


jmw86069/venndir documentation built on June 15, 2024, 1:52 p.m.