[R] (no subject)

Jean V Adams
2012-10-05T12:59:51Z

DL,

Looks like you have a typo in the expression() function.
You had only one "s".
This works for me ...

m <- 10
beta.q <- matrix(rnorm(81), ncol=9)

for (i in 1:9){
   plot(seq(1/m, 1-1/m, 1/m), beta.q[, i], type="l", col=1,
      ylim=range(beta.q), xlab="quantile", ylab=expression(beta[i]))
   }

Jean



dick liang <dickliang911@gmail.com> wrote on 10/04/2012 08:12:07
AM:
>
> producing a multi-figure plot, i am try to add beta_1, beta_2,.. beta_9
to
> ylab using expression or substitution, but cannot work out like
>
> for (i in 1:9){
>    plot(seq(1/m, 1-1/m, 1/m), beta.q[,i], type="l", col=1,
>    ylim=range(beta.q),
>    xlab="quantile", ylab=expresion(beta[i]))
> }
>
> any suggestions will be greatly appreciated.
>
> DL

	[[alternative HTML version deleted]]