How to include italics in the main heading to my graph?

后端 未结 1 1475
北恋
北恋 2021-01-28 14:44

Here is the code I have atm;

plot(V1,V2,pch = 19, main = \"Changes in absolute cell volume of Chlorella Alga over a 24hr period\", xlab = \"Stage in 24hr cycle\"         


        
相关标签:
1条回答
  • 2021-01-28 14:58

    use 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 讨论(0)
提交回复
热议问题