Re: [R] Another question about bootstrapping cor

2014-03-06 Thread Conklin, Mike (GfK)
corboot$t t is a matrix of the bootstrap replicates. -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of David Parkhurst Sent: Thursday, March 06, 2014 12:28 PM To: r-help@r-project.org Subject: [R] Another question about bootstrapping cor

[R] Another question about bootstrapping cor

2014-03-06 Thread David Parkhurst
When I use the fix that Arun K. provided to my earlier example, I wonder how to find out where in the 999 bootstrap repetitions the value for the actual data fits. Here is the fixed code: x <- 1:15 y <- c(2,4,1,3,5, 7,6, 9,10,8, 14, 13, 11, 15, 12) x[3] <- NA; x[11] <- NA; x[8] <- NA y[2] <- NA

Re: [R] another question on shapefiles and geom_point in ggplot2

2011-04-04 Thread Manuel Spínola
Thank you Ahmadou, I got an error when I change fill to colour: > p + geom_point(aes(size = ACE, colour = ACE)) + theme_bw() + + scale_size(to = c(3, 15), name = "Número de especies", breaks = c(10, 40, 70, 100, 130, 160, 190, 220, 250)) + + scale_colour_gradientn(name = 'Número de especies',

Re: [R] another question on shapefiles and geom_point in ggplot2

2011-04-04 Thread ahmadou dicko
Hi all Just as Pierre pointed out, i used rgeos instead of gpclib (the licence is less restrictive even though i'm still students). A since the last release the rgeos package seems to work well. I'm really disapointed by the fact that some packages (e.g adehabitatMA which is great thank's M. Caleng

Re: [R] another question on shapefiles and geom_point in ggplot2

2011-04-03 Thread Pierre Roudier
Hi all, 2011/4/4 Felipe Carrillo : > Manuel: > As far as I know one needs gpclibPermit() in order to fortify > see this: > Note: polygon geometry computations in maptools >     depend on the package gpclib, which has a >     restricted licence. It is disabled by default; >     to enabl

Re: [R] another question on shapefiles and geom_point in ggplot2

2011-04-03 Thread Felipe Carrillo
Manuel: As far as I know one needs gpclibPermit() in order to fortify see this: Note: polygon geometry computations in maptools     depend on the package gpclib, which has a     restricted licence. It is disabled by default;     to enable gpclib, type gpclibPermit()  I am going to guess

Re: [R] another question on shapefiles and geom_point in ggplot2

2011-04-03 Thread Manuel Spínola
Thank you very much Felipe, Did you see the solution from ahmadou dicko? He doesn´t use gpclibPermit() I have another option but I cannot get the right fill for the id. See attached map. ai_biotica = readOGR(dsn="C:/ProyectosRespacial/ICE/SIG_Biotica_PHED", layer="AI_BIOTICA_010411_CRTM05")

Re: [R] another question on shapefiles and geom_point in ggplot2

2011-04-03 Thread Felipe Carrillo
Manuel: I changed your variable names from x to 'long' and y to 'lat' on the riqueza_out.csv file. The code below should do what you want. Also, since the legend title is kind of long, I broke it down into three lines so you can see more plot area. I am cc'ing the other groups so more people use

Re: [R] another question: how to delete one of columes in two ones with high correlation(0.95)

2009-11-07 Thread bbslover
thank you. I need learn it, after that, maybe I can understant it well. thank Nikhil Nikhil Kaza-2 wrote: > > You need dim(cor.matrix)[1] > > Following might be better instead of a loop, to to get the row ids of > a matrix > > (which(cor.matrix >=0.95) %/% dim(cor.matrix)[1])+1 > > for co

[R] another question: how to delete one of columes in two ones with high correlation(0.95)

2009-11-06 Thread bbslover
my programe is below: a=c(1,2,1,1,1); b=c(1,2,3,4,1); c=c(3,4,3,3,3); d=c(1,2,3,5,1); e=c(1,5,3,5,1) data.f=data.frame(a,b,c,d,e) origin.data<-data.f cor.matrix<-cor(origin.data) origin.cor<-cor.matrix m<-0 for(i in 1:(cor.matrix[1]-1)) { for(j in (i+1):(cor.matrix[2])) { if (cor.matri

Re: [R] Another question on gplot

2009-07-23 Thread ONKELINX, Thierry
nden: donderdag 23 juli 2009 14:25 Aan: r-help@r-project.org Onderwerp: [R] Another question on gplot I am getting following strange error : library(sn) library(ggplot2) dat1 <- as.matrix(rsn(1000, 0, 1, 0))[,1] ggplot() + geom_histogram(aes(x = dat1, y = ..density.., fill = ..count..)) +

[R] Another question on gplot

2009-07-23 Thread RON70
I am getting following strange error : library(sn) library(ggplot2) dat1 <- as.matrix(rsn(1000, 0, 1, 0))[,1] ggplot() + geom_histogram(aes(x = dat1, y = ..density.., fill = ..count..)) + xlab("Distribution") + scale_y_continuous("") Error: No data for layer Can anyone please

Re: [R] Another question

2009-03-29 Thread milton ruser
How about you starting threads with something that suggest what you are looking for: Like "adding collumns in stata (gen or egen)". On Sun, Mar 29, 2009 at 10:50 PM, minben wrote: > I want to add a colume to a data frame by some rules, in stata the > command is "gen" or "egen" ,but what is it

[R] Another question

2009-03-29 Thread minben
I want to add a colume to a data frame by some rules, in stata the command is "gen" or "egen" ,but what is it in R? __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.or

[R] Another Question Regarding the nnet package

2008-04-26 Thread Colin Blake Rickert
I have one other question regarding the nnet package in R: What is the value of the step size (often referred to as "eta") for the gradient descent function? I dont see anywhere in the API where this value can be modified. Thanks, -Colin __ R-help@