Skip to content

ggplotly() errors out on a geom_area() with one data point (introduced by ggplot2 v3.4.0) #2208

Closed

Description

@cpsievert

Discovered via #2207

Minimal reprex:

d <- data.frame(x = 1, y = 1)

p <- ggplot(d, aes(x, y)) +
  geom_area() +
  geom_point()

ggplotly(p)
#> Warning in min(diff(unique_loc)) :
#>   no non-missing arguments to min; returning Inf
#> Error in order(dat[["x"]]) : argument 1 is not a vector

Activity

  1. added a commit that references this issue on Nov 28, 2022
    a2709d3
  2. added a commit that references this issue on Nov 28, 2022
    3a33b1a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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