I have data for the first 5 months of 2 separate years presented in a stacked bar plot. Currently it looks like this
I've used this code to get to where I am
ggplot(data=total_arr2, aes(fill=type, y=flights, x=period, group=year)) +
geom_bar(position="fill", stat="identity") +
ggtitle("Arrivals by period, type stacked proportions") +
scale_y_continuous(labels = scales::percent)
I want to add a custom gap to separate the 2019 cases from the 2020 cases so that the trends in the first 5 months of each year can be compared side by side, but I want to keep them on the same graph.
Is there a relatively easy way to do this (been using R for about 3 weeks in total, so it's a steep learning curve!!)