[adegenet-commits] r629 - pkg/man

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Thu May 13 14:08:56 CEST 2010


Author: jombart
Date: 2010-05-13 14:08:56 +0200 (Thu, 13 May 2010)
New Revision: 629

Modified:
   pkg/man/haploGen.Rd
Log:
Added an example to haploGen. Now have to test all this.


Modified: pkg/man/haploGen.Rd
===================================================================
--- pkg/man/haploGen.Rd	2010-05-13 11:28:55 UTC (rev 628)
+++ pkg/man/haploGen.Rd	2010-05-13 12:08:56 UTC (rev 629)
@@ -137,7 +137,7 @@
 plotting \code{haploGen} objects.
 }
 \details{
-=== Dependences with other packages ===\cr
+=== Dependencies with other packages ===\cr
 - ape package is required as it implements efficient handling of DNA
 sequences used in \code{haploGen} objects. To install this package,
 simply type:\cr
@@ -161,4 +161,19 @@
   \code{haploGen} object. This functionality requires the \code{graph}
   package (see 'details').
 }
+\examples{
+if(require(ape)){
+x <- haploGen(repro=2)
+x
+plotHaploGen(x, bg="white")
+title("Spatial dispersion of the haplotypes")
 
+if(require(graph) & require(Rgraphviz)){
+g=as(x, "graphNEL")
+g
+renderGraph(layoutGraph(g))
+}
+
+
+}
+}
\ No newline at end of file



More information about the adegenet-commits mailing list