2013-04-10 101 views

回答

8

使用

%->%

例如

plot(1, type='n') 
text(1,1, expression(x %->%y)) 

enter image description here

的各種箭頭?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