I created a stacked barplot that counts tickets by different state, unfortunately the related numbers are reverse of that how they should be and how they also are in the data frame
Here is my code for the plot:
library(ggplot2)
PlotTotal <- ggplot(data=DevBarPlot, aes(x=DayOfMonth, y=NumOfTickets, fill=State), break(31)) +
geom_bar(stat="identity")+
scale_fill_manual(values=c("lightsteelblue2", "lightsteelblue3"))+
coord_cartesian(ylim=c(2000,30000))+
geom_text(aes(y=NumOfTickets, label=NumOfTickets), vjust=-1, color="black", size=3.4)+
labs(title="Num of Tickets per Day", x="Day of Month", y = "Number of Tickets")+
theme_classic() +
theme(legend.position="top")+
theme(legend.background = element_rect(fill="white",size=0.3, linetype="solid",colour ="lightsteelblue3"))+
theme(plot.title = element_text(color="lightsteelblue2", size=14, face="bold",hjust=0.5))