Re: [R] using var from bash in R script

2012-01-04 Thread dood
Marc Schwartz-3 wrote > > See ?as.formula and ?paste > > Something along the lines of the following should work: > > Args <- c("one", "two", "three") > >> Args > [1] "one" "two" "three" > >> paste(Args[1], "~", Args[2]) > [1] "one ~ two" > >> as.formula(paste(Args[1], "~", Args[2])) > o

[R] using var from bash in R script

2012-01-04 Thread dood
Dear R users, This probably a really noob question, but I'm stuck. I'd like to pass some variables from bash to R as strings. I can successfully pass variables using commandArgs(), the problem is that I end up with an array. So, for example: > Args <- commandArgs(TRUE) > Args [1] "one" "two"

[R] separate mfrow region with line

2011-08-27 Thread dood
Dear R users, I have six plots in one figure, created with par(mfrow=c(2,3)). I would like to add two lines to the figure outside the plotting regions, separating the figure into 3 columns. Is this possible? Thanks -- View this message in context: http://r.789695.n4.nabble.com/separate-mfrow-re