Skip to content
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

Suggestion: move "observation" legend at top of theoretical distribution legend #24

Closed
gmgeorg opened this issue Oct 28, 2023 · 2 comments

Comments

@gmgeorg
Copy link

gmgeorg commented Oct 28, 2023

I have a suggestion for the "Cullen and Frey graph" to be a bit less confusing: the legend on the right should include also the "[blue dot] observations" marker ( on top of or below all the theoretical distribution).

Right now, at first glance it appears that the observations are falling at the top left corner of the graph with a skewness^2 of 1 and a kurtosis of ~1.2. It took me multiple checks to realize that that is the legend, not the actual data point in the (kurtosis, skew^2) plane. This is further exasperated if data follows closely to a normal distribution as then the actual blue dot kind of disappears behind the Normal dot/star shaped pattern - and the only blue dot on graph is the legend ( but it's not clear at all it's a legend)

See e.g. https://stats.stackexchange.com/a/629866/11476

I ll attach an example adaptation of the plot that I think would be more clear to read / interpret.

@gmgeorg
Copy link
Author

gmgeorg commented Oct 29, 2023

See here for an example of before/after, with some other nit improvements for visual clarity/increase data-ink ratio.

Before
b70c7e50-8aa2-4ad3-a00f-64a4353b7adb

After
73ffaaf1-dbc7-47b9-87ea-56e123580d10
and w/ boot = 100 for a heavy-tailed Lambert W x Normal distribution using

library(LambertW)
set.seed(10)
x <- rLambertW(n=1000, "normal", theta=list(beta=c(mu = 1, sigma=2), 
                                            delta=0.15))

4f1c6c9a-fb8c-4abb-81ad-db62424cf782

@aursiber
Copy link
Member

Thanks for the suggestion.
The legend is now improved (see d6eeb4c and f5a892b).

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

No branches or pull requests

2 participants