Re: [R] wait for graph to finish plotting

2010-10-30 Thread news
David Winsemius writes: Aha.. thankyou, I was not aware of that. > Now you have changed plotting functions from plot and barplot over to > barchart (a Lattice function) and were not aware of FAQ 7.22: > > http://cran.r-project.org/doc/FAQ/R-FAQ.html#Why-do-lattice_002ftrellis-graphics-not-work_0

Re: [R] wait for graph to finish plotting

2010-10-28 Thread news
pdf(file = "~/Dropbox/phd/results/graphs/TEST%03d.pdf") for (dataset in c("breastCancer","pima","heartDisease","crx","ionosphere","votes")) { p <- eval(parse(text=paste(dataset,"Probs",sep=""))) m <- melt(t(p)) title <- titles[[dataset]] filename=paste("~/Dropbox/phd/results/graphs/",dat

Re: [R] wait for graph to finish plotting

2010-10-23 Thread news
David Winsemius writes: > On Oct 22, 2010, at 12:50 PM, wrote: > >> Tal Galili writes: >> >>> I suspect that using "dev.copy2eps" Is not going to help you here. >>> >>> Please try again using: >>> >>> pdf(...) # Check: ?pdf >>> for(i in something) >>> { >>> plot(things) >>> } >>> dev.

Re: [R] wait for graph to finish plotting

2010-10-22 Thread news
Tal Galili writes: > I suspect that using "dev.copy2eps" Is not going to help you here. > > Please try again using: > >  pdf(...)  # Check: ?pdf >  for(i in something) >  { >     plot(things) >  } >  dev.off() > > But give pdf() the file path. > Make sure you can make it work with simple plots.  

[R] wait for graph to finish plotting

2010-10-22 Thread news
I want to plot and then save graphs in a loop. The problem is that the graphs take too long to plot. Execution jumps to the save command (dev.copy2eps) before the plotting has finished, and so the wrong graph is saved. I works fine if I step through slowly command at a time, but I want to do it

Re: [R] R step-by-step execution

2010-10-22 Thread news
Alaios writes: > > Hello! > I wouldl ike to ask you if R supports step by step execution. I have written > some nested loops and I would like to check on every step what are the > values > of some variables. Printing all the variables just creates a really big > output > of numbers. >

Re: [R] If Statement with more than one condition

2010-10-22 Thread news
"Santosh Srinivas" writes: > I'm unable to find the OR operator like other language .. any suggestions? > > I want to do If (condition1 OR condition 2){ do something } > if((condition1) | (condition2)){ do something } -- aleblanc __ R-help@r-project

[R] roclet

2009-07-24 Thread news
Hi, can anyone tell me what a "roclet" is exactly? Is this terminology specific to R, or is it used in other languages aswell? -- aleblanc __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

Re: [R] dummy variable encoding

2009-03-05 Thread news
richard.cot...@hsl.gov.uk writes: > The best encoding depends upon which language you would like to manipulate > the variable in. In R, genders are most naturally represented as factors. > That means that in an external data source (like a spreadsheet of data), > you should ideally have the g

[R] dummy variable encoding

2009-03-05 Thread news
Hi, can anyone tell me why an encoding of 1/2 for a dummy variable for two groups (e.g. gender) seems to be preferred over 0/1? It's been bugging me for a while, 0/1 seems more natural, but I have been told (without explanation) that 1/2 is better. Why? -- aleblanc __