Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

circle

Compute cartesian coordinates of a cluster center and radius


Description

This function is used for plotting purposes

Usage

circle(geo, cluster.center, cluster.end)

Arguments

geo

A n x 2 table of the x-coordinate and y-coordinates of the centroids of each area

cluster.center

The area index (an integer between 1 and n) indicating the center of the circle

cluster.end

The area index (an integer between 1 and n) indicating the area at the end of the circle

Value

cluster.radius

A data frame that you can plot

Author(s)

Albert Y. Kim

See Also

Examples

data(pennLC)
geo <- pennLC$geo[,2:3]
plot(geo,type='n')
text(geo,labels=1:nrow(geo))
lines( circle(geo, 23, 46), col = "red" )

SpatialEpi

Methods and Data for Spatial Epidemiology

v1.2.3
GPL-2
Authors
Cici Chen [ctb], Albert Y. Kim [aut, cre], Michelle Ross [ctb], Jon Wakefield [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.