【发布时间】:2016-11-21 12:37:49
【问题描述】:
我正在尝试创建一个情节标题手动格式化两行其中包括两个斜体字,我做了一些searching 在 Stack Exchange 上,但还没有找到解决这个看似简单的问题的好方法。
这两个物种的学名相当长,因此需要多行标题(ggplot2 没有格式化)。
目标:
........标题的第一行带有物种
第二行字anotherItalicSpecies结尾
ggplot(mtcars,aes(x=wt,y=mpg))+
geom_point()+
labs(title= expression(paste(atop("First line of title with ", atop((italic("Species")))),"
secondline words", italic("anotherSpecies"), "the end")))
这会产生以下损坏的标题:
【问题讨论】: