Skip to content

geom_point(): when stroke=NA, cannot change size of the point #4624

Closed
@themeo

Description

@themeo

I'm trying to generate a plot with points with no border displayed, just fill and to be able to change their size. However, once stroke=NA, I cannot change the size of the points.

library(ggplot2)

df = data.frame(x=rnorm(100), y=rnorm(100))
ggplot(df, aes(x, y)) + geom_point(shape=21, stroke=NA, fill="black", size=5)

ggplot(df, aes(x, y)) + geom_point(shape=21, stroke=NA, fill="black", size=0.5)

Created on 2021-09-20 by the reprex package (v2.0.1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behaviorlayers 📈

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions