Skip to content

Unexpected behavior with NaN #6668

@kylebutts

Description

@kylebutts

I am not sure if this is intended behavior but NaNs now show up on the plot. Is this expected behavior? I would expect not if oob is censor?

library(ggplot2)
packageVersion("ggplot2")
#> [1] '4.0.0.9000'
ggplot() +
  geom_point(aes(x = c(1, 2, 3), y = c(1, 2, 1 / 0)))

Created on 2025-09-30 with reprex v2.1.1

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