df <- data.frame (yaxis = rnorm(120,5,1),
xaxis = rep(c("A - S. longishname","B - S. longishname","C - S. longishname","A - S. short","B - S. short", "B - S. med"), 20))
ggplot(df, aes(x = xaxis, y = yaxis)) + geom_point()+ theme_classic() + scale_x_discrete(labels=expression(italic("A - "),italic("B - "),italic("C - "),italic("A - "),italic("B - "), italic("B - "))) #+ scale_x_discrete(labels=expression(italic("S. longishname"),italic("S. short"),italic("S. med")))
What I want: Primarily: The secondary label i.e. the phrase that is common for every few species If possible the brackets that look lik the follows (axis label with sufficient vertical space is first prioirty)