[R] How to create density ellipses with R

Martin Maechler m@ech|er @end|ng |rom @t@t@m@th@ethz@ch
Fri Jan 14 18:21:39 CET 2022


>>>>> Gerrit Eichner 
>>>>>     on Fri, 14 Jan 2022 16:42:28 +0100 writes:

    > Hi Paul, take a look at base R's function contour (and the
    > Examples section of its help page), and follow maybe the
    > hints under "See also".

    >   Hth -- Gerrit

Also, with Recommended packages 'cluster' and its
ellipsoidPoints() function:

The result of

 library(cluster)
 example(ellipsoidPoints)

is the attached plot with a classical and
robust (via recommend pkg 'MASS') covariance ellipse drawn.

Best,
Martin

--
Martin Maechler
ETH Zurich; R Core, and maintainer of 'cluster'


-------------- next part --------------
A non-text attachment was scrubbed...
Name: cluster_ellipsoidPoints.png
Type: image/png
Size: 34101 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20220114/3bbcb5bc/attachment.png>


More information about the R-help mailing list