[R] How to use different title in a loop

Aval Sarri aval.sarri at gmail.com
Tue Dec 9 03:44:37 CET 2008


see ?paste

main = paste ("Main effect of ", variable)

> par(mfrow = c(n/2, 2))
> for ( i in 1:n)
> {
>        plot(1:J, y[i, 1: J], main = 'Main effect of X_i')
> }
>



More information about the R-help mailing list