Is there a way to draw a simple ellipse based on the following definition (instead of eigenvalue) in R?
The definition I want to use is that an ellipse is the set of points in a plane for which the sum of the distances to two fixed points F1 and F2 is a constant.
Should I just use a polar cordinate?
This may be more algorithmic question.
As @DWin suggested, there are several implementations for plotting ellipses (such as function
draw.ellipse
in packageplotrix
). To find them:That being said, implementing your own function is fairly simple if you know a little geometry. Here is an attempt:
An example: