[R] How to create density ellipses with R
j|ox @end|ng |rom mcm@@ter@c@
Fri Jan 14 17:26:58 CET 2022
As I understand it, the ellipse package is meant for drawing confidence
ellipses, not density (i.e., data) ellipses. You should be able to use
ellipse::ellipse() to draw a bivariate-normal density ellipse (assuming
that's what you want), but you'll have to do some computation first.
You might find the dataEllipse() function in the car package more
convenient (again assuming that you want bivariate-normal density contours).
I hope this helps,
John Fox, Professor Emeritus
Hamilton, Ontario, Canada
On 2022-01-14 10:12 a.m., Paul Bernal wrote:
> Dear R friends,
> Happy new year to you all. Not quite sure if this is the proper place to
> ask about this, so I apologize if it is not, and if it isn´t, maybe you can
> point me to the right place.
> I would like to know if there is any R package that allows me to produce
> density ellipses. Searching through the net, I came across a package called
> ellipse, but I'm not sure if this is the one I should use.
> Any help and/or guidance will be greatly appreciated.
> Best regards,
> [[alternative HTML version deleted]]
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help