Skip to content

Don't allow stroke = NA to mess up point sizing #4667

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

Merged
merged 2 commits into from
Nov 12, 2021
Merged

Conversation

thomasp85
Copy link
Member

Fix #4624 by treating ´NAas0` when calculating point size

@thomasp85 thomasp85 merged commit 4d2333a into main Nov 12, 2021
@thomasp85 thomasp85 deleted the issue-4624-na-stroke branch November 12, 2021 07:22
@ZhangSR-kolar
Copy link

Hi, thanks for the improvement of the 'stroke' vs. 'size' issue. However, when I use the development version of ggplot2, though 'stroke = NA' won't change the 'size' aes in the plot region, the size legend was still marked and showed with the same size.
ggplot(mtcars, aes(wt, mpg)) + geom_point(aes(size = qsec), alpha = .5, stroke = NA)
image

@yutannihilation
Copy link
Member

Oh, good catch! Thanks.

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

Successfully merging this pull request may close these issues.

geom_point(): when stroke=NA, cannot change size of the point
4 participants