问题描述
我无法获得任何包装主图标题以使其包含一些粗体和斜体字的标题的解决方案。在其他几种无济于事的解决方案中,我尝试过Stringr并手动创建换行符,但是stringr包含“粗体”等。文本和手动换行符要么不产生任何效果,要么创建非常奇怪的中断strange manual break(我已经在几个地方尝试过它们,看看是否有任何效果。
对不起笨拙的代码-我是生物学研究生,对R来说还很陌生。
mainplotlabel4 <- c(expression(paste(bold("Figure 5"),italic(" Species with long name")," Long fake name virginica response all things"),italic(" Shorter species")," Sepal Length Only Purple Long Fake Name"))
setosa.sepal.dotplot <- ggerrorplot(data = iris,x = "Species",y= "Sepal.Length",add = "jitter",error.plot = "linerange",add.params = list(color="darkolivegreen2",size=1.5),xlab = 'Treatment',ylab = "Sepal Length",main = mainplotlabel4,ylim = c(0,10),width=1,ggtheme = theme_dark())
setosa.sepal.dotplot + rotate_x_text(45)
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)