Here is the code I am trying to run and it is giving me the above mentioned error:
dt %>% filter(brand=="volkswagen") %>% 
  filter(Agecat!="NA") %>% 
  group_by(model,Agecat) %>% 
  summarise(Totaldays2close=sum(Days2close)) %>% 
 ## spread(Agecat,Totaldays2close) %>% 
 ## write_csv("Export.csv")
ggplot()+
    geom_col(mapping = aes(x=Agecat,y=Days2close))
Where Agecat is categorical variable and Days2close is no. of days required to close deal. Can you suggest how to avoid and why this error is coming?
 
     
    