[R] Error Message when executing wordcloud(bd_clean)

2016-10-30 Thread betelguiese
Hello everybody I am using RStudio version 0.99.903, and recently installed and loaded the package wordcloud. My platform is Mac OS Sierra. I came across the following error message when I execute the command line wordcloud(bd_clean): > wordcloud(bd_clean) Error in if (min.freq > max(freq)) min

Re: [R] Predict ARMA GARCH model with new data

2016-10-30 Thread David Winsemius
> On Oct 28, 2016, at 7:00 AM, Be Water wrote: > > How to add newdata to be predicted in an ARMA GARCH model with the fGARCH > package? > > ## R version 3.3.1 (2016-06-21) > ## Platform: x86_64-w64-mingw32/x64 (64-bit) > ## Running under: Windows >= 8 x64 (build 9200) > > library(fGarch) > >

Re: [R] convert matrix

2016-10-30 Thread Robert Baer
On 10/29/2016 11:19 AM, Elham - via R-help wrote: Dear Madam / Sir,I saw this function for "Convert to matrix as it is that you wanted" > test2<-as.matrix(test1) colnames(test2)<-NULL genelist<-c("Fkh2","Swi5","Sic1") rownames(test2)<-genelist test2 # [,1] [,2] [,3] #Fkh2 0.141 0.242 0

Re: [R] How to create a list of trellis objects for grid.arrange()

2016-10-30 Thread Ben Tupper
Hi, You might try gridExtra::marrangeGrob() require(raster) require(sp) require(gridExtra) f <- system.file("external/test.grd", package="raster") r <- raster(f) p1 <- spplot(r) p2 <- spplot(r/2) ps <- list(p1,p2) mm <- marrangeGrob(ps, ncol=1, nrow=2, top = 'foo') mm The above generates the

Re: [R] Convert matrix

2016-10-30 Thread Jim Lemon
Hi Elham, As you have asked this question a large number of times in quite a few places, and have received reasonable answers, I assume that you already know that the gene names and associated values are in another format. What you probably want to do is to convert the first column of the data that