could you please help me how I can add yellow hatching to the last type ('Zemní plyn/ Vodík') in the graph?
I am using this code:
diff_decomp %>%
ggplot(aes(x = scenario)) +
geom_col(aes(y = diff, fill = type)) +
labs(
y = 'GWe',
x = 'Scénář',
title = 'Rozdíly nových kapacit ve výrobě elektřiny',
fill = "Hlavní zdroj energie"
) +
facet_grid(~ending_per) +
scale_fill_manual(values = c(PaletteCAP_elc[1:11], "blue")) +
theme_bw() +
theme(
axis.text.x = element_text(angle = 90),
axis.text.y = element_text(size = 12),
legend.text = element_text(size = 12))
I tried to use ggpatern package, but it did not work. I tried to create a new column to mark the rows I want to hatch, but I don't know how to fit them into the chart