这个符号在表达式函数中是什么意思:*~~

What does this notation mean in an expressoin function: *~~

我正在研究 Aguinis, Gottfredson, & Culpepper (2013) 中的示例。他们提供了一些 R 代码来绘制交互。这是相关部分:

#Figure 3 Panel (b) - Reduced Y Scale
ylb=5;yub=6.5
curve(0+1*x,xlb,xub,xlab='LMX',ylab='Individual Empowerment',lwd=2,type='n',
ylim=c(ylb,yub))
for(i in 1:length(Wjs)){
    B0j=gammas[1]+gammas[3]*Wjs[i]
    B1j=gammas[2]+gammas[4]*Wjs[i]
    curve(B0j+B1j*x,xlb,xub,add=T,xlab='LMX',ylab='Individual Empowerment',lwd=2,lty=i)
}

labs=c(expression(W[j]==-1*~~SD),expression(W[j]==0*~~SD),expression(W[j]==1*~~SD))

legend(xlb,6.5,legend=c("Leadership Climate",labs[1],labs[2],labs[3]),bty='n',lty=c(0:3))

请注意 expression 函数是如何用于创建图例的,并且有这个 *~~ 但在生成的图形中似乎只有空 space。
它是做什么用的?这是什么意思?

你猜对了!波浪号在 expression() 中添加 space。有关更多信息,请参阅 ?plotmath 中的 table ...从那里,

‘x*y’ juxtapose x and y

‘x ~~ y’ put extra space between x and y