轴标签中的ggplot2斜体字

时间:2016-07-27 13:04:41

标签: r

我希望使用ggplot2在我的图表的轴标题中用斜体写一个单词。我试着写这样的东西:“ alpha -male percentage”,其中alpha是斜体。

我在我的情节代码中尝试了以下内容:

ylab(expression(paste("The", italic("alpha"),"-male percentage"))

然而“alpha”仍然不是斜体。有人可以帮忙吗?

0 个答案:

没有答案