I would like to combine two ggplot barchart next to each other into one graph:
ggplot(data, aes(Year,lossratio1)) + geom_bar(stat="identity", colour="blue", fill="blue")
ggplot(data, aes(Year, lossratio2) + geom_bar(stat="identity", colour="red", fill="red")
Note:
- x-axis is the
year - y-axis is
lossratio1andlossratio2.
Barchart fill follows the lossratio respectively.