2012-10-08 42 views

回答

10

使用expression(sqrt(x)),請參閱help file(通過執行?plotmath,如mnel的評論中所述)用於R圖中的數學註釋。

plot(1:10, 
    main='Example', 
    ylab=expression(sqrt(x))) 

產生

enter image description here

+2

1。沒有必要在網上尋找幫助。 '?plotmath'會給出相同的幫助頁面 – mnel

+0

我是downvoting(問題,而不是答案),因爲@ user1730122交叉發送到r-help。 –