wiki:R Code

back to first page..

  • Distribution conjointe (histogramme et corrélation entre deux variables)

http://freakonometrics.blog.free.fr/index.php?tag/R

library(evd); data(lossalae) 
x <- lossalae$Loss; y <- lossalae$ALAE
xhist <- hist(log(x), plot=FALSE)  
yhist <- hist(log(y), plot=FALSE)
top <- max(c(xhist$counts, yhist$counts)) 
nf <- layout(matrix(c(2,0,1,3),2,2,byrow=TRUE), 
c(3,1), c(1,3), TRUE) 
par(mar=c(3,3,1,1)) 
plot(x, y, xlab="", ylab="",log="xy",col="red") 
par(mar=c(0,3,1,1))
barplot(xhist$counts, axes=FALSE, ylim=c(0, top), 
space=0,col="light green") 
par(mar=c(3,0,1,1))
barplot(yhist$counts, axes=FALSE, xlim=c(0, top), 
space=0, horiz=TRUE,col="light blue")
  • Modelling species distribution

http://www.mced-ecology.org/wp-content/uploads/2011/02/Dormann_Kaschner_MCED2.pdf Boosted regression trees page10

Last modified 14 years ago Last modified on Apr 4, 2011 5:45:05 PM