test<-data.frame(a=c('1','1','2','2'),b=c(2,-2,4,-3),d=c('m','n','m','n'))
p+geom_bar(position=position_dodge(),stat='identity',fill='deeppink',colour='black',width=0.5)
I have a barplot, i woule like to fill the plot backgroup with 2 different colours with respect to the b values (> 0 and < 0) or factor d (m and n) in the data.
Is it possible in ggplot2?