ggplot2 and a Stacked Bar Chart with Negative Values
Update: As of ggplot2 2.2.0, stacking for negative values is handled automatically, without having to create separate layers for the positive and negative values. If I understand what you’re looking for, the trick is to put the two positive and negative data in separate layers, and also to use stat = “identity”: dat <- read.table(text … Read more