powered by
This function is used for plotting purposes
circle(geo, cluster.center, cluster.end)
A data frame that you can plot
A n x 2 table of the x-coordinate and y-coordinates of the centroids of each area
n x 2
The area index (an integer between 1 and n) indicating the center of the circle
1
n
The area index (an integer between 1 and n) indicating the area at the end of the circle
Albert Y. Kim
data(pennLC) geo <- pennLC$geo[,2:3] plot(geo,type='n') text(geo,labels=1:nrow(geo)) lines( circle(geo, 23, 46), col = "red" )
Run the code above in your browser using DataLab