如何在我的图表的主标题中包含斜体?

时间:2013-10-03 21:30:09

标签: r

这是我有的代码atm;

plot(V1,V2,pch = 19, main = "Changes in absolute cell volume of Chlorella Alga over a 24hr period", xlab = "Stage in 24hr cycle", ylab = "Absolute cell volume(µm^3)", xlim = c(0,24), ylim = c(32.5,188))

我希望Chlorella部分用斜体标记为有机体的名称。有什么想法吗?

1 个答案:

答案 0 :(得分:2)

使用italic( )

mn <- expression(paste("Changes in absolute cell volume of", italic(" Chlorella "), "Alga over a 24hr period"))

plot(V1,V2,pch = 19, 
     main = mn, 
     xlab = "Stage in 24hr cycle",  
     ylab = "Absolute cell volume(µm^3)",
     xlim = c(0,24), ylim = c(32.5,188))