Hello,
I am wanting to fit an ellipse around a set of data points in a plot().
An example is attached to this post with the drawn red line of what I'm wanting to plot.
Thanks!
`dataX <- c(18, 19, 19.5, 21)
dataY <- c(22, 19.5, 23, 20.5)
plot(dataX, dataY, type = "p", pch=21, cex=1.0, xaxp = c(16, 23, 7), yaxp = c(18, 25, 7), col = "black", bg = "green3", xlab = "X", ylab = "Y", xlim=c(16, 23), ylim=c(18, 25))`