Reputation: 396
I have created a plot:
p = qplot(distance, Recombination, data = forplot, colour = factor(Species), size=I(4))
p + labs(title="Effective Recombination", x="Distance Categories", y="Effective Recombination Ratio", colour="Species") + ylim(0,0.022)
However, I need the legend names (s. mimosarum and s. africanus) to be in italics. How do I do that? I have experimented with using expression and fontface, but I cannot get anything working.
Upvotes: 1
Views: 6246
Reputation: 1867
Try sth like that
p + theme(legend.text = element_text(face = "italic"))
Upvotes: 9