[R] use expression() in a loop

2008-08-18 Thread Nanye Long
Hi all, I want to do plot() in a loop to make 10 graphs, so I have some code like for (i in 1:10) { plot(... ... , xlab = expression(g[i]) ) } I expect g_1, g_2, and so on appear on x labels, but it simply prints g_i for each graph. Does anybody know how to get around this problem? Thanks. N

[R] Computation of pD in R2WinBUGS

2008-08-11 Thread Nanye Long
, or did I miss anything? Thanks for your answer. Nanye Long __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal

[R] WinBUGS GUI when using R2WinBUGS

2008-06-07 Thread Nanye Long
Hi All, I was using the function bugs() in package R2WinBUGS to call WinBUGS under Linux, and the WInBUGS window always hangs up until the program finishes. This causes a little inconvenience if I run a program which takes a long time (a couple of days), because I cannot use "nohup [command]" and

[R] where to download BRugs?

2008-06-06 Thread Nanye Long
Hi all, Does anyone know where to download the "BRugs" package? I did not find it on r-project website. Thanks. NL __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.o