I draw a plot of F1 / F2 vowels ( example here ). Each vowel has several dots / values, and I would like to draw an ellipse around the dots, so:
- the ellipse covers at least 80% of the points (that is, in the image above, βiβ has several meanings, but they are contained inside the ellipse).
- positioned in the direction of min / max values.
I can complicate the material, but trigonometry and mathematics are Greek to me. Below I have tried.
Ellipsoidhull ()
Ellipsoidhull () is in the package package "cluster". If we go to the matrix function with F1 and F2, it seems to calculate the center of the ellipse, but the direction values ββare huge. For instance:
> olm ol.f1 ol.f2
If passed ellipsoidhull :
> ellipsoidhull(olm) 'ellipsoid' in 2 dimensions: center = ( 480.69 904.33 ); squared ave.radius d^2 = 2 and shape matrix = ol.f1 ol.f2 ol.f1 2115.5 1449.5 ol.f2 1449.5 3558.2 hence, area = 14636
I think it would not be easy to figure out how to draw an ellipse, but the βshape matrixβ (maximum / minimum radius values?) Is too large. By the way, thanks to #R on Freednode for tips.
Source Code from EMU-R
Then I looked at the code for the EMU-R, R package, which works with EMU , which can, among other things, draw F1 / F2 ellipsoids. Code that seems to do it here , but I don't understand how an ellipse is drawn.
Any help was appreciated.
source share