[adegenet-commits] r1022 - pkg/man

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Fri Jul 13 19:26:35 CEST 2012


Author: jombart
Date: 2012-07-13 19:26:34 +0200 (Fri, 13 Jul 2012)
New Revision: 1022

Modified:
   pkg/man/simOutbreak.Rd
Log:
added example


Modified: pkg/man/simOutbreak.Rd
===================================================================
--- pkg/man/simOutbreak.Rd	2012-07-13 17:22:17 UTC (rev 1021)
+++ pkg/man/simOutbreak.Rd	2012-07-13 17:26:34 UTC (rev 1022)
@@ -72,10 +72,13 @@
 \examples{
 \dontrun{
 if(require(ape)&&require(igraph)){
-x <- simOutbreak(R0 = 2, infec.curve = c(0, 1, 1, 1), n.hosts = 200)
+x <- simOutbreak(R0 = 2, infec.curve = c(0, 1, 1, 1), n.hosts = 100)
 x
 
-plot(x)
+head(x$dynam,15)
+matplot(x$dynam,xlab="time",ylab="nb of individuals")
+par(mar=rep(.1,4))
+plot(x,cex=.8)
 }
 }
 }
\ No newline at end of file



More information about the adegenet-commits mailing list