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

geom_violindot should use a fixed size for the dots #79

Open
Ezibenroc opened this issue Nov 19, 2020 · 2 comments
Open

geom_violindot should use a fixed size for the dots #79

Ezibenroc opened this issue Nov 19, 2020 · 2 comments
Labels
Enhancement 💥 New feature or request

Comments

@Ezibenroc
Copy link

I have the version 0.6.0.1, installed today using devtools::install_github("easystats/see").

Taking the example from the README:

library(ggplot2)
library(see)

ggplot(iris, aes(x = Species, y = Sepal.Length, fill = Species)) +
  geom_violindot(fill_dots = "black") +
  theme_modern() +
  scale_fill_material_d()

Produces the expected output:
normal

However, if we change the values of the y aesthetic, it unexpectedly changes the size of the dots:

ggplot(iris, aes(x = Species, y = Sepal.Length*1e-3, fill = Species)) +
  geom_violindot(fill_dots = "black") +
  theme_modern() +
  scale_fill_material_d()

large

And:

ggplot(iris, aes(x = Species, y = Sepal.Length*1e3, fill = Species)) +
  geom_violindot(fill_dots = "black") +
  theme_modern() +
  scale_fill_material_d()

small

This is unfortunate, it means we cannot use geom_violindot for values to far from the [0, 10] interval.

@strengejacke
Copy link
Member

@DominiqueMakowski Not sure if this can be handled with the stackratio argument to geom_dotplot()? If, for the first example, we set size_dots = .02, dots have better proportions.

@DominiqueMakowski
Copy link
Member

Same as in the other issues, using https://github.com/mjskay/ggdist would definitely facilitate all that (the current implementation being very artisanal)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement 💥 New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants