I don't know where went wrong in my code I am getteing Error

Error in ggplot(data = ans1, aes(Month, NumOfComplaints, label = NumOfComplaints)) :
object 'ans1' not found

ggplot(data = ans1,aes(Month,NumOfComplaints,label = NumOfComplaints))+
geom_line()+
geom_point(size = 0.8)+
geom_text()+
scale_x_continuous(breaks = ans1$Month)+
labs(title = "Monthly Ticket Count",x= "Months",y ="No. of Tickets")+
theme(plot.title = element_text(hjust = 0.5))

Its the lack of ans1 which you attempt to use as the data. But what have you done to make it available ?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.