R表达式用文本和多个下标绘制CI
我在 R 中编写使用复杂下标的特定表达式时遇到问题。表达式应如下所示: $(A_{1,2,L}, A_{1,2,U})$
我有一个可以生成正确下标的表达式(下面的示例),但我无法添加逗号条目之间。我需要使用 substitute()
或 group()
吗?
plot(NULL, xlim = c(0, 2), ylim = c(0,2))
text(x = 1, y = 1, label = expression((A["1,2,L"]~A["1,2,U"])))
I'm having trouble writing a particular expression in R that uses complex subscripts. The expression should look like this: $(A_{1,2,L}, A_{1,2,U})$
I have an expression that produces the correct subscripts (example below) but I'm unable to add the comma between the entries. Do I need to use substitute()
or group()
?
plot(NULL, xlim = c(0, 2), ylim = c(0,2))
text(x = 1, y = 1, label = expression((A["1,2,L"]~A["1,2,U"])))
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要将两个表达式放在列表
list(Expr1,Expr2)
中。You need to put the two expressions in a list
list(expr1, expr2)
.