get_circle {cape} | R Documentation |
Generate coordinates for a circle
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
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.
[Package cape version 3.1.2 Index]