I'm working on recreating the look of a plot found in a recent Economist article. There are two bar graphs connected by lines with the space in between them having the same color, albeit a little opaque.
I've seen this question asked but the examples only have lines connecting the bar graphs. Here's some fake data:
set.seed(0)
data_bar <- data.frame(
stringsAsFactors = F,
Sample = rep(c("A", "B"), each = 10),
Percentage = runif(20),
Taxon = rep(1:10, by = 2)
)
I've worked on reworking the linked example with no success. Any ideas?
Also in case you can't see the graph here's a screen shot:
geom_area
match the colors of the bars? – Backrest