Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在 R 中使用 plotmath 符号在绘图的 X 轴上添加一个区间,例如3<=X<=4. 我知道您可以执行以下操作:
3<=X<=4
x=1:10 x1=3 x2=4 plot(x, xlab=substitute(a <= X *""~ X <= b, list(a=x1,b=x2)))
但我不能删除第二个X,因为它会给我一个错误。这甚至可能吗?还是我应该做点什么?
X
尝试以下操作:
plot(x, xlab=substitute(a <= ~X <= b, list(a=x1, b=x2)))