get_circle: Generate coordinates for a circle

Description Usage Arguments Value

View source: R/get_circle.R

Description

Given x,y coordinates and a radius, this function generates points on the circumference of the circle. This function is used by plot_network to plot cape results in a circular layout.

Usage

1
get_circle(radius, center_x = 1, center_y = 1, dens = 5e-04)

Arguments

radius

A numeric value giving the radius of the circle

center_x

The x coordinate for the center of the circle

center_y

The y coordinate for the center of the circle

dens

A numeric value controlling how many points are returned. Smaller values will return more points along the circumference of the circle

Value

This function returns a list with two elements x and y. These are the x and y coordinates of the circle. Plotted against each other they will plot a circle.


cape documentation built on Feb. 10, 2021, 5:06 p.m.