I have a dataset called Flt
CARRIER CANCELLED DIVERTED
UA 0 0
UA 1 0
UA 0 1
AA 1 0
AA 0 0
DL 0 1
DL 1 0
I want to do a barplot like this

Thing is I just want Cancelled =1 and Diverted=1 in the barplot. I tried using ggplot but I am not sure on how to add the second column.
ggplot(data=Flt) + geom_bar(aes(x=CARRIER, fill=c(CANCELLED=1),(DIVERTED=1)),position = "dodge")
I get error "stat_count() can only have an x or y aesthetic" when I use the code above. Any help would be greatly appreciated.


