I feel like this is quite an easy question, but I couldn't find it asked anywhere. Nor could I find anything in the docs.
Is it possible in ggplot2 to assign the same value to multiple theme elements? For instance, I can write my theme declaration as follows:
theme(axis.text = element_text(colour = "gray25"),
axis.text.x = element_text(angle = 45, hjust = 1),
line = element_line(colour = "gray25"),
strip.text = element_text(face = "bold"),
legend.title = element_text(colour = "gray25"),
legend.text = element_text(colour = "gray25"),
plot.title = element_text(colour = "gray25", face="bold",vjust=2))
But this seems highly repetetive. Isn't there something like a conjunction to assign the same value to multiple elements? Something like this for instance.
theme(axis.text & legend.title & legend.text & plot.title = element_text(colour = "gray25"),
labels bold
axis.text.x = element_text(angle = 45, hjust = 1),
strip.text = element_text(face = "bold"),
plot.title = element_text(face="bold",vjust=2))
