[R] Factorial regression with multiple features: how to remove non-significant features?

2010-04-01 Thread Vijaya Parthiban
Hello all, I am trying to do factorial regression using lm() like this (example): model<-lm(y ~ x1 + x2 + x3 + x4 + x1*x2*x3*x4) The final term 'x1*x2*x3*x4' adds all possible interactions between explanatory variables to the model. i.e. x1:x2, x1:x2:x3, etc, etc. Now, the issue is that some of

Re: [R] PDF too large, PNG bad quality

2009-10-23 Thread Vijaya Parthiban
Hello Lasse, Why not try this? (1) Create 20MB PDF from R (2) use convert command in linux, examples below: convert -resize 50% <20mbfile.pdf> convert -resize 75% <20mbfile.pdf> Ghostscript can help you as well for conversion! Using vector formats (pdf,ps,eps) are good for this purpose, as op

Re: [R] WAR file installation

2009-10-28 Thread Vijaya Parthiban
I know of one called Biocep / Virtual R workbench! Info here: http://www.ebi.ac.uk/microarray-srv/frontendapp/ Best, Parthiban. 2009/10/27 Cedrick W. Johnson > WAR files are strictly in the J2EE realm, not something related to R. > > You have to install your choice of app server and write java

[R] Math symbols in ylab with vis.gam() or plot.gam()

2010-08-19 Thread Vijaya Parthiban
Hi all, Has anyone tried to plot math symbols with vis.gam() - a function that uses (I think) plot.gam() internally? This is from the package mgcv - I am new to gam(). For example, with the normal plot(), the expression() works fine for Math symbols: plot(xx, ylab=expression(paste(Delta,"H",sep=

Re: [R] extracting data from unstructured (text?) file

2012-03-11 Thread Vijaya Parthiban
Hi Frauke, Try unix commands with R's system() function. Example: Let's say you have a matrix like this in the file (note: the first element is missing) called hello.txt 10 100 2 20 200 3 30 300 4 40 400 5 50 500 You can try something like: hello = system("cut -f1 hello.txt", intern=T) VP. On