Re: [R] 3D plots in R.3.2.3

2016-05-18 Thread David Winsemius
> On May 18, 2016, at 7:51 AM, ch.elahe via R-help wrote: > > > Hi all, > I am using R version 3.2.3 and I want to plot 3D histogram or 3D scatterplot. > Does anyone know which packages can be used for this version for 3D plots? I > tried plot3d but it's not working for this version. Perhaps

[R] Install GARPFRM package

2016-05-18 Thread Saba Sehrish via R-help
Hi If a package is not loading, it is a matter of concern. Therefore, I have asked for the assistance or guidance in this regards. Saba __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help P

Re: [R] Install GARPFRM package

2016-05-18 Thread David Winsemius
> On May 18, 2016, at 9:51 PM, Saba Sehrish via R-help > wrote: > > Hi > > I am trying to install GARPFRM package to R (version: 3.3.0) by following > steps: > > (a) install.packages("GARPFRM", repos="http://R-Forge.R-project.org";) > > It gives following Warning messages: > > 1: running

Re: [R] R STUDIO crashing

2016-05-18 Thread Shige Song
One thing for sure: It's not the fault of R nor Rstudio (because they are doing fine on other people's computers, mine included). You can probably get some help on the Rstudio support forum. On Wed, May 18, 2016 at 6:37 PM, rezvan hatami via R-help < r-help@r-project.org> wrote: > Hi there > I ha

[R] Install GARPFRM package

2016-05-18 Thread Saba Sehrish via R-help
Hi I am trying to install GARPFRM package to R (version: 3.3.0) by following steps: (a) install.packages("GARPFRM", repos="http://R-Forge.R-project.org";) It gives following Warning messages: 1: running command '"C:/PROGRA~1/R/R-33~1.0/bin/i386/R" CMD INSTALL -l "C:\Users\ssehrish\Documents\R

Re: [R] gam.check() NA results (k-index, p-value) of a gam logistic regression model

2016-05-18 Thread Fotis Fotiadis
Dear Prof. Wood, Thank you for your reply! Best, Fotis On Wed, May 18, 2016 at 12:05 PM, Simon Wood wrote: > Dear Fotis, > > The test is a randomization test, based on comparing differences of > residuals, ordered with respect to the covariate of the smooth, to > differences of residuals in ra

Re: [R] ggplot2 not displaying graph in RH7 RStudio Server 3.2.3

2016-05-18 Thread phiroc
Here's a minimal example that displays a bar chart in RStudio 3.2.4 for Windows, but not in RStudio Server 3.2.3 on RH Linux 7: --- R Code --- library(ggplot2) a <-

[R] RSTUDIO keeps crashing-please help me

2016-05-18 Thread rezvan hatami via R-help
Hi there I have been using R for a while now. I am doing my PhD project with it. Recently, it keeps crashing, mostly when I draw a graph and use XYPLOT code. I even spent some money on cleaning registry, checking ram, deleting unnecessary files from working directory. I used "plot(cars) and dev.

[R] R STUDIO crashing

2016-05-18 Thread rezvan hatami via R-help
Hi there I have been using R for a while now. I am doing my PhD project with it. Recently, it keeps crashing, mostly when I draw a graph and use XYPLOT code. I even spent some money on cleaning registry, checking ram, deleting unnecessary files from working directory. I used "plot(cars) and dev.

Re: [R] ggplot2 not displaying graph in RH7 RStudio Server 3.2.3

2016-05-18 Thread Jeff Newmiller
Couple of points: 1) this is the R-help mailing list. If there is a problem with RStudio, nice as it is it has its own support area. If the bug can be reproduced without RStudio then this list or one of its sister lists are appropriate. 2) I don't have RedHat, but I can try this later at home o

Re: [R] Vectorised operations

2016-05-18 Thread Jim Lemon
Hi John, I may be misunderstanding what you want, but this seems to produce the output you specify: A<-sample(-10:100,100) i<-rep(1:10,c(5:13,19)) # replace the last value of x with the maximum max_last<-function(x) return(c(x[-length(x)],max(x))) as.vector(unlist(by(A,i,max_last))) and this is w

[R] 3D plots in R.3.2.3

2016-05-18 Thread ch.elahe via R-help
Hi all, I am using R version 3.2.3 and I want to plot 3D histogram or 3D scatterplot. Does anyone know which packages can be used for this version for 3D plots? I tried plot3d but it's not working for this version. Thanks for any help. Elahe __ R-he

Re: [R] Vectorised operations

2016-05-18 Thread Bert Gunter
Sorry, I can't help, but wanted to note that "apply methods" are essentially just loops and rarely much faster or slower than explicit loops. (Those of us who use them do so for clarity and maintainability of code reasons). Cheers, Bert Bert Gunter "The trouble with having an open mind is that p

Re: [R] Vectorised operations

2016-05-18 Thread William Dunlap via R-help
ave(A, i, FUN=cummax) loops but is faster than your aggregate-based solution. E.g., > i <- rep(1:1, sample(0:210, replace=TRUE, size=1)) > length(i) [1] 1056119 > a <- sample(-50:50, replace=TRUE, size=length(i)) > system.time( vAve <- ave(a, i, FUN=cummax) ) user system elapsed 0.

Re: [R] projectRaster function no values

2016-05-18 Thread Adrienne Wootten
Ben, Thanks so for much for the heads up on R-sig-geo (totally forgot about that one myself). Thank you also for the clue, it gave me a poke in the right direction to figure it out. I'll share with the group just in case someone else runs across this. It was actually something off with the reso

[R] Vectorised operations

2016-05-18 Thread John Logsdon
Folks I have some very long vectors - typically 1 million long - which are indexed by another vector, same length, with values from 1 to a few thousand, sp each sub part of the vector may be a few hundred values long. I want to calculate the cumulative maximum of each sub part the main vector by

Re: [R] projectRaster function no values

2016-05-18 Thread Ben Tupper
Hi Adrienne, You'll always get great help for these kinds of questions if you subscribe and post to the R-SIG-Geo mailing list https://stat.ethz.ch/mailman/listinfo/r-sig-geo I highly recommend that you join! I have encountered this before, and usually it is because I have mistakenly assumed

Re: [R] ggplot2 not displaying graph in RH7 RStudio Server 3.2.3

2016-05-18 Thread Jeff Newmiller
Context is everything. Please follow the Posting Guide and provide a minimal reproducible example. Also, if your scripts are literally the same on the two platforms, you should provide the output of the sessionInfo() function for each. -- Sent from my phone. Please excuse my brevity. On May

[R] ggplot2 not displaying graph in RH7 RStudio Server 3.2.3

2016-05-18 Thread phiroc
Hello, I have written an R script which displays a bar chart using the ggplot2 library (please refer to code excerpt at the bottom of this e-mail). Although the bar chart is displayed OK in the Windows version of RStudio (v. 3.2.4), nothing appears on Linux RH 7 in Rstudio Server 3.2.3. I hav

Re: [R] Placement of words in a word cloud as per its occurance.

2016-05-18 Thread shaila shailaja
Hi Jim, Thank you for the reply. Is there a way out to use it with wordcloud package and built a comparative and commonality cloud. My usage: comparison.cloud(term.matrix,max.words=300)   commonality.cloud(term.matrix,random.order=FALSE, rot.per=0) I am already doing a lot o

Re: [R] gam.check() NA results (k-index, p-value) of a gam logistic regression model

2016-05-18 Thread Simon Wood
Dear Fotis, The test is a randomization test, based on comparing differences of residuals, ordered with respect to the covariate of the smooth, to differences of residuals in randomized order. Random effect terms are excluded because there is not basis size to choose. Currently smooths with f

Re: [R] Placement of words in a word cloud as per its occurance.

2016-05-18 Thread peter dalgaard
A few points of order; you seem to be making a couple of rookie mistakes here. (Don't take it personally, lots of people do). 1) Posting in HTML comes across garbled (and it can get much worse than what you see below), so please configure you mail program to avoid doing that. 2) You seem to ass