[英]How can I italicize a list of names and plot them in R?
I can italicize a phrase when plotting text like this: text(1, 2, substitute(paste(italic('Gorilla gorilla gorilla'))
, however, I want to send a whole list of names to text but of course the following won't work text(x-coordinates, y-coordinates, substitute(paste(italic('list'))
, as it will just plot "list" repeatedly. Is there a work around?在绘制这样的文本时,我可以将短语设为斜体: text(1, 2, substitute(paste(italic('Gorilla gorilla gorilla'))
,但是,我想将整个名称列表发送到 text 但当然以下内容获胜't work text(x-coordinates, y-coordinates, substitute(paste(italic('list'))
,因为它只会重复绘制“列表”。有解决办法吗?
I have tried to italicize text in the list first and make use of loops.我尝试先将列表中的文本设为斜体并使用循环。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.