Skip to content

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

Closed
@cpsievert

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

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