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

allow points to become bigger in ggtb #1297

Open
Zaf4 opened this issue Feb 12, 2025 · 1 comment
Open

allow points to become bigger in ggtb #1297

Zaf4 opened this issue Feb 12, 2025 · 1 comment

Comments

@Zaf4
Copy link

Zaf4 commented Feb 12, 2025

Currently, when you zoom in (with +ggtb()) to the points created by geom_point or geom_jitter points do not become larger. Instead, the point size stays the same. For the context, violin and boxplot does not share this behavior.

This might be the expected behavior in many cases. But, I think having the option to allow points grow larger while zooming in could also be desired, such as in my case.

Would there be a possibility to include an argument in ggtb to allow such behavior?

@alshan
Copy link
Collaborator

alshan commented Feb 13, 2025

You can use the parameter size_unit='x' (or size_unit='y') in geom_point.
This works well with wheel zoom. With rubberband/centerpoint zoom, the results may vary since the point size will be linked to the units of only one axis.
There's a feature request (#260) to add a third option to size_unit that would link point size to both axes (using whichever unit is smaller).

Would this address your situation well?

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