Closed
Description
Run this trivial code (csv is attached):
library(tidyverse)
data <- read_csv("data.csv")
data %>%
ggplot(aes(x=Tenure)) +
geom_bar()
You get this warning:
Warning message:
Computation failed in `stat_count()`:
Elements must equal the number of rows or 1
The data:
data.csv
Expected behavior: it should "just work". All the data in this tibble is just doubles. I reviewed the geom_bar
documentation, and I see no contraindications for this working.
If I have done something wrong here, then this becomes a feature request for a useful error message or improved documentation.