Skip to content

stat_ellipse Rdocumentation on vcov #6462

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Abiologist opened this issue May 19, 2025 · 4 comments
Open

stat_ellipse Rdocumentation on vcov #6462

Abiologist opened this issue May 19, 2025 · 4 comments

Comments

@Abiologist
Copy link

Dear All - I was surprised to find that the function ggplot2::stat_ellipse uses a different covariate (vcov) function for the t-distribution setting (robust) and the normal distribution setting (non-robust).
While I'm sure this is correct - there is no mention of this in the Rdocumentation - which must result in quite a few pleasant surprises when the t ellipses are smaller than the normal ellipses !

Perhaps this could be mentioned (?) - also perhaps an argument for vcov to allow changing this ? (plus default behaviour as above if vcov not specified).

@teunbrand
Copy link
Collaborator

Thanks for the report! Just to clarify, the request here is to put a note in the documentation that type = "t" will use MASS::cov.trob(), whereas others use stats::cov.wt()?

@Abiologist
Copy link
Author

Abiologist commented May 19, 2025 via email

@teunbrand
Copy link
Collaborator

I don't think stat_ellipse() is the right place to explain the various nuances of the choices for the same reason I don't think stat_density() is the right place to discuss the various nuances of different bandwidth selectors. If we link the relevant functions, people can read up and inform their choices.

@Abiologist
Copy link
Author

yes - teunbrand's note plus one or a couple of links sounds good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants