I want all negative value to be yellow and all positive to be blue. Something is wrong with my code as I can see some of the positive values are turned yellow and vice versa for blue (see the figure). Also the legend scale did not show up at the bottom. Also, how would I make the zero line bold. Here is the sample of my code
A=runif(20,min = -3, max = 3)
myDate=1981:2000
myData=data.frame(myDate,A)
ggplot(myData, aes(myDate, A))+
geom_bar(stat = "identity", fill=ifelse( A < 0,"yellow","blue"))+
coord_polar(theta = "x")+
theme(legend.position = "bottom")+
theme_bw()
Any help would be appreciated.