Skip to content

scale_y_log10 Fails with a Very Large Range #2454

@billdenney

Description

@billdenney

The second figure should not fail; log axes should be possible.

library(ggplot2)
#> Warning: package 'ggplot2' was built under R version 3.4.3
ggplot(data.frame(y = c(9.88131291682493e-324, 1000), x = 1:2), aes(x = x, y = y)) + 
  geom_line()

ggplot(data.frame(y = c(9.88131291682493e-324, 1000), x = 1:2), aes(x = x, y = y)) + 
  geom_line() + scale_y_log10()
#> Error in seq.default(min, max, by = by): 'from' must be a finite number

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behaviorscales 🐍

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions