lsfit.circle(x, y, init = NULL, units = c("radians", "degrees"),
template = c("none", "geographics"),
modulo = c("asis", "2pi", "pi"), zero = 0, rotation = c("counter", "clock"), ...)
## S3 method for class 'lsfit.circle':
print(x, digits = max(3, getOption("digits") - 3), ...)
x
is a vector then y
must be a vector with the same length.NULL
the vector is set
to c(max(c(abs(x-mean(x)), abs(y-mean(y)
units
used in defining the angles between
observations and the center of the circle. See circular
.template
used in defining the angles between
observations and the center of the circle. See circular
.modulo
used in defining the angles between
observations and the center of the circle. See circular
.zero
used in defining the angles between
observations and the center of the circle. See circular
.rotation
used in defining the angles between
observations and the center of the circle. See circular
.optim
function.lsfit.circle
. .
plot(res)
par(mfcol=c(1,2)) plot(res$angles) hist(res$radius)
plot(circular(0), type="n", xlim=c(-5.2, 5.2), ylim=c(-5.2, 5.2), xlab="The Radius of the circle
windrose(x=res$angles, y=res$radius)
lsfit.circle
uses the optim
function to minimize the sum of the
squared residuals between the observations and the optimally fitting circle.