Skip to content

Expanding the range of potential sizes for geoms, specifically geom_point()? #6342

Closed
@dinosquash

Description

@dinosquash

What is the lower bound for the size argument of various geoms, for example geom_point(), and is that controlled internal to the package?

If so, is that something that can be changed via an extension or within the function?

Motivation:

I am trying to draw very, very small points. The smallest available sizes, which seem to be in [0.0001, 0.001], are still too large for my uses.

A simple reprex that helped me identify:

df1 <- data.frame(x = seq(1, 5, 1),
                   y = rep(0, 5),
                   size = c(1, 0.1, 0.001, 0.0001, 0.00001))

chart <- ggplot() + 
  geom_point(data = df1, aes(x = x, y = y, size = size),
             stroke = 0) + 
  geom_point(aes(x = 3, y = 1), stroke = 0, shape = ".")

Image

Even if I was satisfied with the square shape of shape = ".", the length across the square is greater than my desired diameter for a point.

Yes, I know it's small. And yes, I need it to be smaller.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions