[R] How to create density ellipses with R
murdoch@dunc@n @end|ng |rom gm@||@com
Fri Jan 14 19:50:25 CET 2022
On 14/01/2022 1:17 p.m., Paul Bernal wrote:
> 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
> Any other guidance will be greatly appreciated.
That's exactly what the ellipses package was designed to do. If you
don't see how to use it, post an example of the scatterplot and model
fitting you used, and someone will be able to show you how to draw the
> 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
>> I hope this helps,
>> 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
>>> 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
>>> 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
>>> and provide commented, minimal, self-contained, reproducible code.
> [[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