[R] multi-panel figure: overall title for each row

2012-10-23 Thread capy_bara
Dear all, I have a 3x2 plot and in addition to the title of the individual plots I would like to have an overall title for each row. I managed to get an overall title for the whole plot matrix with mtext: par(mfrow=(c(3,2)), mar=c(6.4,4.5,4.2, 1.8), oma=c(0,0,3,0)) for (i in 1:6) barplot(sample

[R] R in batch mode: cannot mkdir R_TempDir

2012-11-14 Thread capy_bara
Dear all, I am trying to run a simple R script in batch mode on a cluster. Running a simple test script with "R CMD BATCH test.R test.Rout" works fine, but as soon as I submit the very same command to the queue and the job gets sent to a node, the following error is written to test.Rout: Fat

[R] splitting a vector

2012-08-01 Thread capy_bara
Hello, I have a vector with positive integer numbers, e.g. > numbers <- c(1,2,1,2,3,4,5) and want to split the vector whenever an element in the vector is smaller or equal to its predecessor. Hence I want to obtain two vectors: c(1,2) and c(1,2,3,4,5). I tried with which(), but it is not so el

[R] single, double or no quotes in expression

2012-03-15 Thread capy_bara
Dear all, I am confused about how to create an expression. I use a package (rsbml) which uses expressions and seems to make a difference if there is a quote around the expression or not. For example, package works with expressions such as > expression(A + B) but not with > expression("A + B") I

Re: [R] single, double or no quotes in expression

2012-03-15 Thread capy_bara
Many thanks, "parse" is exactly what I was looking for!! Hannes -- View this message in context: http://r.789695.n4.nabble.com/single-double-or-no-quotes-in-expression-tp4475247p4475475.html Sent from the R help mailing list archive at Nabble.com. __

[R] convex nonnegative basis vectors in nullspace of matrix

2012-04-11 Thread capy_bara
Dear all, I want to explore the nullspace of a matrix S: I currently use the function Null from the MASS package to get a basis for the null space: > S = matrix(nrow=3, ncol=5, c(1,0,0,-1,1,1,1,-1,-1,0,-1,0,0,0,-1)); S > MASS::Null(t(S)) My problem is that I actually need a nonnegative basis for

Re: [R] convex nonnegative basis vectors in nullspace of matrix

2012-04-12 Thread capy_bara
Hi the solution with linear programming works very well! Even if I take more 'realistic' matrices with dimensions of about 25x60, the calculation of the basis goes well (if I increase the number of iterations to 1000). Meanwhile I also found an algorithm for an exact calculation of the extreme ray