[R-sig-eco] Problem with strip names in bwplot (lattice)

2015-11-09 Thread Augusto Ribas
Hello, i'm haveing difficulties to write correctly a strip name in a lattice plot. Here is a data example: resposta<-rnorm(90) preditor1<-rep(rep(c("a","b"),each=15),3) preditor2<-rep(c("sp1","sp2","sp3"),each=30) library(lattice) #species names need to be in italic, so i wrote them like this b

[R-sig-eco] Netcarto implementations in R?

2014-06-27 Thread Augusto Ribas
Does anyone know if there is some implementation of Netcarto( http://amaral-lab.org/resources/software/netcarto) in R? Thanks for you attention. -- Grato Augusto C. A. Ribas Site Pessoal: http://recologia.com.br/ Github: https://github.com/Squiercg Lattes: ht

[R-sig-eco] (Off-topic) Doubt About Isoclines for 2 competing population (Logistic Growth)

2013-08-13 Thread Augusto Ribas
Hello dear list members, i was reading the book Primer of Ecology with R from M Henry H Stevens and got a simple doubt, its not about R but hope someone could spare one moment with it, its a little off-topic but maybe could of general interest. On the chapter 5, more specifically 5.2.1 he start to

[R-sig-eco] Problem with function iucn_summary() of taxize package, returning error in strsplit()

2012-12-19 Thread Augusto Ribas
Hello I'm using the package taxize and was trying to use the function iucn_summary() but it work perfectly with the examples, but when i try another name i receive the error msg: # > iucn_summary("Molossus currentium") Erro em strsplit(pop, split = ":") : argumento modo não caractere ##

[R-sig-eco] Doubt about function colext() of package Unmarked. Wrong estimates for a metapopulation simulation.

2012-11-24 Thread Augusto Ribas
one can easily see what i cant see here. Does anyone know why in this example i dont get 0.20 and 0.10 as answers here(the values i used when i started the simulation up in the begin). Well thanks for your time to read my doubt and hope you could help me figure out what i'm doing wro

[R-sig-eco] Export Google Maps Route to R and get kilometers coordinates

2012-09-17 Thread Augusto Ribas
lon=mean(lon)) zoom <- min(MaxZoom(range(lat), range(lon))) MyMap <- GetMap(center=center,zoom=zoom,maptype ="roadmap") PlotOnStaticMap(MyMap) TextOnStaticMap(MyMap,dados.pos[,2],dados.pos[,1],labels = dados.pos[,3]) Thanks for your attention. Best Wishes - Augusto Ribas -- Grato August

[R-sig-eco] Opinion on Analysis. glm() and nls()

2012-07-12 Thread Augusto Ribas
ngs nc <- 3 ni <- 3000 nb <- 1000 nt <- 2 #run out <- bugs(data=win.data, inits=inits, parameters.to.save=params, model.file="test.model.txt", n.thin=nt, n.chains=nc, n.burnin=nb, n.iter=ni, debug = TRUE) #look print(out, dig = 3) #probably i still dont understand everything i&

[R-sig-eco] Help with function to webscrap

2012-06-26 Thread Augusto Ribas
Hello. I'm haveing problems with a function to do webscrap. I have a long list like this example: data<-data.frame(especie=c("Rana pipiens","Rana vaillanti","Ctenosaura similis","Bos taurus"),group=c("sapo","sapo","reptil","mamifero")) And, as some species names are out of data, i trying to make

Re: [R-sig-eco] combine 2 plots - one network and one phylogenetic tree

2012-06-20 Thread Augusto Ribas
dos.igraph,layout=matrix(c(1:6,ordem,rep(c(1,2),each=6)),ncol=2,nrow=12), vertex.color=c(rep("red",6),rep("green",6)),edge.arrow.size=0.2,vertex.size=20, vertex.label=c(paste("P",1:6,sep=""),paste("H",1:6,sep=""))) I asked on the ig

Re: [R-sig-eco] combine 2 plots - one network and one phylogenetic tree

2012-06-20 Thread Augusto Ribas
1:6,sep=""),paste("H",1:6,sep=""))); >> my_layout<-tkplot.getcoords(1); >> >> So you can use the variable my_layout (a matrix of coordinates) in >> other plots of network you want to: >> >> plot(dados.igraph, layout=my_layout) >

[R-sig-eco] combine 2 plots - one network and one phylogenetic tree

2012-06-20 Thread Augusto Ribas
the host species, nor reproduce this layout with igraph. If i could reproduce the layout on plot.igraph(), i think it would be easy to plug the tree on the network. So anyone know if there is an easy way to do what i'm trying? I'm pretty stuck here Thanks for your attention. Best wishes

Re: [R-sig-eco] Estimating HR overlap by adehabitatHR

2012-03-27 Thread Augusto Ribas
I had same problem once. You can try this. just put your number of individuals in the for loops ## estimates the MCP cp <- mcp(rel[,1]) plot(cp) #make a matrix to receave the data res <- matrix(NA,4,4,dimnames=list(c( "1","2","3","4"), c("1","2","3","4"))) #cal

[R-sig-eco] change list into interaction matrix

2012-03-26 Thread Augusto Ribas
Hello dear list. I have a problem that could use some help. I have a list of parasites and its hosts and want to change it to a interaction matrix. I try some functions on the package bipartite put couldn't solve my problem. If someone could lend a hand i made an example: #data type example dados<