I'm very new to R/ggplot so thanks in advance for your patience. Here's what I have at the moment:
ggplot(data = figure_data_3A,
mapping = aes(x = `Gene`,
y = `Percent growth`)
)+
geom_col()+
theme_classic()+
ylab("% Growth of double relative to single mutants")+
xlab(NULL)+
theme(axis.text.x = element_text(angle = 90))
Here's my code, and I want to organise the elements on the x-axis by another qualitative factor in my dataframe called Function/Process
, so that I can label them together in groups, ultimately to look like .