Home > Mobile >  R expression to plot CI with text and multiple subscripts
R expression to plot CI with text and multiple subscripts

Time:04-10

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"])))

enter image description here

  • Related