I would like to plot two-level bar charts with following code,
with dataset
Date <- as.yearmon(rep(as.yearmon(c("Jun 2013", "Jun 2014"), format="%b %Y"), 4))[1:7]
Mktg.Al <- c("CX", "CX", "GA", "GA", "HX", "HX", "KA")
Seats <- sample(300:1000,7)
data <- data.frame(Date, Mktg.Al, Seats)
code for plotting
ggplot(data, aes(x=as.factor(Date), y=Seats, fill=Mktg.Al)) +
geom_bar(position = "Dodge", stat="identity", size=10) +
geom_text(aes(label=Seats), position=position_dodge(width=0.9), vjust=-0.25)
I would like to have same size of each bars
Many thanks