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

Revise the scales for sizes of points #1066

Open
ASmirnov-HORIS opened this issue Mar 27, 2024 · 0 comments
Open

Revise the scales for sizes of points #1066

ASmirnov-HORIS opened this issue Mar 27, 2024 · 0 comments
Milestone

Comments

@ASmirnov-HORIS
Copy link
Collaborator

ASmirnov-HORIS commented Mar 27, 2024

scale_size() should scale the area of a point, not it's radius.

For example,

data = {
    'x': [1, 2, 3, 4],
    'y': [0, 0, 0, 0],
    'size': [0, 2, 4, 32]
}
ggplot(data, aes('x', 'y')) + geom_point(aes(size='size')) + scale_size(range=[1, 20])

gives

but I expect more smooth transition of a size:

This should result in a better perception of point sizes. And this is how it works in ggplot2.

The same should be done for the functions scale_size_area() and scale_size_identity().

The current way of scaling (size to radius) should be moved to the new function, scale_radius().

@alshan alshan modified the milestones: New, 2024Q2 Mar 27, 2024
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