[R] how to plot two graphs in one figure

2008-05-09 Thread Zhandong Liu
Dear helpers, I am trying to plot two survival curves in the same figure. plot(survival) // in matlab, one just need to call "hold on" plot(survival2) I am wondering how to do it in R. Thank you very much! -- Zhandong Liu Genomics and Computational Biology University of Pennsylvani

[R] how to clear window in mac version of R?

2008-05-01 Thread Zhandong Liu
I've tried many times on google. Can't find an answer. What is the command of clear window in mac version of R. PS: I know in windows version of R, you can use Ctrl+L. Thanks. -- Zhandong Liu Genomics and Computational Biology University of Pennsylvania 616 BRB II/III, 421 Curie

Re: [R] Why R is 200 times slower than Matlab ?

2008-05-01 Thread Zhandong Liu
n CRAN, jit, that > > aims to provide similar speedups. > > http://www.milbo.users.sonic.net/ra/index.html > > Great! I just found out about ra. In Python I love psyco and I guess I > will test > ra soon. > > Thanks, > N.- > > -- > http://arhuaco.org > -- Zh

Re: [R] Why R is 200 times slower than Matlab ?

2008-04-30 Thread Zhandong Liu
, 2008 at 4:47 PM, Ray Brownrigg <[EMAIL PROTECTED]> wrote: > On Thu, 01 May 2008, Zhandong Liu wrote: > > I am switching from Matlab to R, but I found that R is 200 times slower > > than matlab. > > > > Since I am newbie to R, I must be missing some important programmi

[R] Why R is 200 times slower than Matlab ?

2008-04-30 Thread Zhandong Liu
(fc_matrix) } For an input vector of size 300. It took R 2.17 seconds to run. But the same code in matlab only needs 0.01 seconds to run. Am I missing sth in R.. Is there a away to optimize. ??? Thanks -- Zhandong Liu Genomics and Computational Biology University of Pennsylvania 616 BRB II/III