Closed
Description
With scales 0.3, this code will error:
x <- c(Sys.Date(), Sys.Date() - 1e4)
y <- c(3, 4)
d <- data.frame(x, y)
library(ggplot2)
ggplot(d, aes(x, y)) + geom_line() + scale_x_discrete()
#> Error: Discrete value supplied to continuous scale
Running this code using the latest dev version of scales doesn't result in error, and ggplot tries to draw a plot with 1e4 ticks. I know this is a cornercase, but I would prefer an error since it can easily wreak havoc on an R session, especially with date-times.
Metadata
Metadata
Assignees
Labels
No labels