Suppose x and y are variables. I am trying to create a graph title that has a Latex equivalent of $\sigma_v =$ 3 $\rho =$ 5
, where the values 3 and 5 come from R variables.
Here is the closest I have been able to come (modeled after an example in ?plotmath):
x <- 1:10
y <- 3
z <- 5
plot(x,x)
mtext(substitute(list(sigma[v],rho) == group("(",list(a,b),")"),list(a=y,b=z)))
Is it possible to have a sequence of "variable = number" strings?