Re: [R] autocorrelation function plot in lattice

2016-08-20 Thread Richard M. Heiberger
Yes. You may use the acf.pacf.plot, tsacfplots and related functions in the HH package. >From ?HH::tsacfplots tsacfplots(co2) acf.pacf.plot(co2) If you want just the acf, and not the pacf also, you can use update(acf.pacf.plot(co2)[1], layout=c(1,1), main="ACF: co2") On Sat, Aug

Re: [R] autocorrelation function plot in lattice

2016-08-20 Thread Jeff Newmiller
Undoubtedly. Consider nlme::plot.ACF as one possibility. Roll your own is also feasible. -- Sent from my phone. Please excuse my brevity. On August 20, 2016 5:28:04 AM PDT, Naresh Gurbuxani wrote: >Using lattice package, is it possible to plot autocorrelation functions >similar to acf in sta

Re: [R] problem concernig Survsplit, package survival

2016-08-20 Thread Jeff Newmiller
Your link did not take me to the code you reference... Google does not make entire books available online which may have something to do with my difficulty. This is one reason the Posting Guide asks you to post a self-contained, reproducible example. Your use of HTML format in your posting to

[R] Efficiently parallelize across columns of a data.table

2016-08-20 Thread Rebecca Payne
Makes sense. Thanks for the clear explanation. Rebecca On Friday, August 19, 2016, Peter Langfelder > wrote: > Last time I looked (admittedly a few years back), on unix-alikes > (which you seem to be using, based on your use of top), > foreach/doParallel used forking. This means each worker gets

Re: [R] pheatmap breaks

2016-08-20 Thread Jim Lemon
Hi Adrian, I had to add an extra color, but this might do what you want: chxx<-matrix(runif(100,-3.32,4.422),nrow=10) chxx.cut<-as.numeric(cut(chxx,breaks=c(-3.5,-1.96,-1,0,1,1.96,5))) chxx.col<-c("#FF","#FF","#FF","#FF","#FF",NA)[chxx.cut] library(plotrix) chxx_highcol<-color.