[R] How to create density ellipses with R

Paul Bernal p@u|bern@|07 @end|ng |rom gm@||@com
Fri Jan 14 19:17:47 CET 2022


Dear John and R community friends,

To be a little bit more specific, what I need to accomplish is the creation
of a confidence interval ellipse over a scatterplot at different
percentiles. The confidence interval ellipses should be drawn over the
scatterplot.

Any other guidance will be greatly appreciated.

Cheers,

Paul

El vie, 14 ene 2022 a las 11:27, John Fox (<jfox using mcmaster.ca>) escribió:

> Dear Paul,
>
> 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
>
> --
> John Fox, Professor Emeritus
> McMaster University
> Hamilton, Ontario, Canada
> web: https://socialsciences.mcmaster.ca/jfox/
>
> 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,
> >
> > Paul
> >
> >       [[alternative HTML version deleted]]
> >
> > ______________________________________________
> > R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
>
>

	[[alternative HTML version deleted]]



More information about the R-help mailing list