3
我試圖將以下表達式轉換爲我的ggplot2
的刻度線:x \to y
其中\to
是通常的乳膠箭頭符號。什麼是正確的方式來做到這一點? expression(x%to%y)
似乎沒有工作。將LaTex中的符號轉換爲g中的ggplot2 R
我試圖將以下表達式轉換爲我的ggplot2
的刻度線:x \to y
其中\to
是通常的乳膠箭頭符號。什麼是正確的方式來做到這一點? expression(x%to%y)
似乎沒有工作。將LaTex中的符號轉換爲g中的ggplot2 R
使用
%->%
例如
plot(1, type='n')
text(1,1, expression(x %->%y))
的各種箭頭?plotmath
x %<->% y # x double-arrow y
x %->% y # x right-arrow y
x %<-% y # x left-arrow y
x %up% y # x up-arrow y
x %down% y # x down-arrow y
x %<=>% y # x is equivalent to y
x %=>% y # x implies y
x %<=% y # y implies x
x %dblup% y # x double-up-arrow y
x %dbldown% y # x double-down-arrow y
中描述
如果你想真 LaTex,那麼你可以試圖讓tikzDevice工作爲您的版本R