2013-10-03 45 views
0

這是我的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

這有什麼好做RStudio。 –

回答

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)) 
+0

@裏卡多 - 感謝的人這就是它排序! – user2844486

相關問題