I have a ggplot
s = ggplot(final, aes(y = avg,x=factor(dose),fill = factor(mo))) +
facet_grid(.~gene, labeller = label_parsed) +
geom_bar(position = "dodge", stat = "identity", color = "black")
where final is a data.frame containing 4 columns: mo, dose, gene and avg.
I've been trying to italicize the facet labels with
s + theme(strip.text.x = element_text(face = "italic", size = 10, colour = "white"))
to no avail. Size and colour can be changed with no problems.
However, once I remove "labeller" argument from facet_grid(), the font face can be changed accordingly. Is this a bug?
Although I'll work around this problem by setting them individually as suggested here, I'm sure theme() was there for a very good reason.