search for: vnamesj

Displaying 1 result from an estimated 1 matches for "vnamesj".

Did you mean: vnames
2002 Nov 16
1
using the function "expression" with "paste" in a plot
...=array(somedata,c(m,vn,vx)) # producing plots for (j in 1:vx){ for (i in 1:vn) { plot(mydata, type="l", main=expression(paste("Effect of", vnames[j],"on",vnames[i])), xlab="Lags (quarters)", ylab="Response") } } The title appears as "Effect of vnamesj on vnamesi". Without the function "expression" title for j=1 and i=2 appears as "Effect of pi on y". The desired outcome would be return the word "pi" rather than a Greek letter. Is there any simple way to overcome this situation. Thank you Ahmad Abu Hammour -.-...