[R] xyplot() does not plot legends with relation=free scales

2012-04-08 Thread Kaveh Vakili
Hi all, I have this problem with lattice that xyplot() won't draw some of my axis labels if the type (i.e. the relation argument) of scales is set as free. For example, in the plot below, I would want it to also show: 1. the labels E1,...E6 below the 10th panel (i.e. 3rd row, 2 col)just as

[R] Rglpk

2010-06-09 Thread Kaveh Vakili
Hi list, in the Rglpk_solve_LP function (::Rglpk), on line 26, the function calls a function as.glp_bounds() that i cannot access. i'm trying to alter the Rglpk_solve_LP function to add a line to retrieve column/row dual values. everytime i change the slightest line of code inside

[R] Rsymphony

2010-06-08 Thread Kaveh Vakili
Hi list, I have two question relating to the Rsymphony package: a) is there a way to use 'warm starts' ? i.e. if i successively call Rsymphony_solve_LP() with only one constraints change, does it perform the optimization from the simplex-origin or does it uses the previously found solution

[R] RSpython Ubuntu

2010-05-20 Thread kaveh vakili
Dear List, I'd like to call pyhton function from within R. I tried installing the latest version of RSPython: wget http://www.omegahat.org/RSPython/RSPython_0.7-1.tar.gz R CMD INSTALL --clean RSPython_0.7-1.tar.gz I get a compile error (posted below). Did anyone else run against this ? Is

Re: [R] RSpython Ubuntu

2010-05-20 Thread kaveh vakili
kaveh vakili kaveh.vakili at ulb.ac.be writes: Dear List, I'd like to call pyhton function from within R. I tried installing the latest version of RSPython: wget http://www.omegahat.org/RSPython/RSPython_0.7-1.tar.gz R CMD INSTALL --clean RSPython_0.7-1.tar.gz I get a compile

[R] lapply() reccursively

2009-10-13 Thread Kaveh Vakili
Hi all, I was wondering whether it is possible to use the lapply() function to alter the value of the input, something in the spirit of : a1-runif(100) a2-function(i){ a1[i]-a1[i-1]*a1[i];a1[i] } a3-lapply(2:100,a2) Something akin to a for() loop, but using the lapply() infrastructure. I

Re: [R] lapply() reccursively

2009-10-13 Thread Kaveh Vakili
[i-1]*a1[i] } a1 } system.time(cadd(a1)) user system elapsed 1.344 0.004 1.353 system.time(cumprod(a1)) user system elapsed 0.004 0.000 0.002 system.time(looop(a1)) user system elapsed 0.772 0.000 0.775 On Tue, 13 Oct 2009, Kaveh Vakili wrote: Hi all

Re: [R] lapply() reccursively

2009-10-13 Thread Kaveh Vakili
] } a1 } system.time(cadd(a1)) user system elapsed 1.344 0.004 1.353 system.time(cumprod(a1)) user system elapsed 0.004 0.000 0.002 system.time(looop(a1)) user system elapsed 0.772 0.000 0.775 On Tue, 13 Oct 2009, Kaveh Vakili wrote: Hi all, I

Re: [R] lapply() reccursively

2009-10-13 Thread Kaveh Vakili
]*a1[i] } a1 } system.time(cadd(a1)) user system elapsed 1.344 0.004 1.353 system.time(cumprod(a1)) user system elapsed 0.004 0.000 0.002 system.time(looop(a1)) user system elapsed 0.772 0.000 0.775 On Tue, 13 Oct 2009, Kaveh Vakili wrote: Hi all, I

Re: [R] lapply() reccursively

2009-10-13 Thread Kaveh Vakili
[i-1]*a1[i] } a1 } system.time(cadd(a1)) user system elapsed 1.344 0.004 1.353 system.time(cumprod(a1)) user system elapsed 0.004 0.000 0.002 system.time(looop(a1)) user system elapsed 0.772 0.000 0.775 On Tue, 13 Oct 2009, Kaveh Vakili wrote: Hi all

Re: [R] ellipse in pairs plot

2008-11-14 Thread Kaveh Vakili
Dear list moderator, I'm sending you a solution i found to the question i asked the list yesterday (i have not been able to figure out how to post it to the list directly). elly-function(w,col=array(1,dim(w)[1]),pch=array(1,dim(w)[1])){ p-dim(w)[2]

[R] ellipse in pairs plot

2008-11-13 Thread Kaveh Vakili
Hi dear list, I'm scrambling with this: i have a p-dimensional data frame for which i want to have a pairs() plot, with ellipse added in each lower.panel. I want the ellipse's parameter (mu, sigma) to be extracted from the appropriate entries in a pre-computed matrix (dab in the code below).