[adegenet-commits] r634 - pkg/man

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Tue May 18 15:08:48 CEST 2010


Author: jombart
Date: 2010-05-18 15:08:48 +0200 (Tue, 18 May 2010)
New Revision: 634

Modified:
   pkg/man/haploGen.Rd
   pkg/man/seqTrack.Rd
Log:
Doc of haploGen / seqTrack seems ok. Package fails to pass the check because of summary method for  genind/genpop not being seen... again!


Modified: pkg/man/haploGen.Rd
===================================================================
--- pkg/man/haploGen.Rd	2010-05-18 11:18:18 UTC (rev 633)
+++ pkg/man/haploGen.Rd	2010-05-18 13:08:48 UTC (rev 634)
@@ -111,6 +111,9 @@
 in the sample}
   \item{from,to}{arguments of the conversion function, for converting a
 \code{haploGen} object into a \linkS4class{graphNEL}.}
+\item{tz, origin}{ aguments to be passed to \code{\link{as.POSIXct}}
+(see ?as.POSIXct)}
+\item{\ldots}{further arguments to be passed to other methods}
  }
 \author{Thibaut Jombart \email{t.jombart at imperial.ac.uk}}
 \references{

Modified: pkg/man/seqTrack.Rd
===================================================================
--- pkg/man/seqTrack.Rd	2010-05-18 11:18:18 UTC (rev 633)
+++ pkg/man/seqTrack.Rd	2010-05-18 13:08:48 UTC (rev 634)
@@ -34,6 +34,7 @@
                          date.range=NULL, plot=TRUE, \dots)
 
 get.likelihood(\ldots)
+
 \method{get.likelihood}{seqTrack}(x, mu, haplo.length, \ldots)
 }
 \arguments{
@@ -83,6 +84,7 @@
   \item{plot}{a logical stating whether a plot should be drawn (TRUE,
     default), or not (FALSE). In all cases, the
     function invisibly returns plotting information.}
+  \item{\ldots}{further arguments to be passed to other methods}
 }
 \author{
   Thibaut Jombart \email{t.jombart at imperial.ac.uk}
@@ -141,7 +143,7 @@
   previous command lines to install this package).
 }
 \seealso{
-  \code{\link[ape]{dist.dna}} to compute pairwise genetic distances in aligned sequences.
+  \code{\link[ape]{dist.dna}} in the ape package to compute pairwise genetic distances in aligned sequences.
 }
 \examples{
 if(require(ape)){
@@ -213,7 +215,7 @@
 head(res)
 tail(res)
 range(res$weight, na.rm=TRUE)
-barplot(table(res$weight)/sum(!is.na(res$weight)), ylab="Frequency", xlab="Mutations between ancestor and descendent")
+barplot(table(res$weight)/sum(!is.na(res$weight)), ylab="Frequency",xlab="Mutations between inferred ancestor and descendent", col="orange")
 
 
 ## DISPLAY SPATIO-TEMPORAL DYNAMICS 
@@ -232,10 +234,10 @@
 palette(rev(heat.colors(10)))
 plotSeqTrack(res, round(xy), add=TRUE,annot=FALSE,lwd=2, date.range=curRange, col=res$weight+1)
 title(paste(curRange, collapse=" to "))
-legend("bottomright", lty=1, leg=0:8, title="number of mutations", col=1:9, lwd=2)
+legend("bottom", lty=1, leg=0:8, title="number of mutations", col=1:9, lwd=2, horiz=TRUE)
 
 
-## SECOND STAGE
+## SECOND STAGE:
 ## SPREAD WITHIN AMERICA, FIRST SEEDING OUTSIDE AMERICA
 curRange <- as.POSIXct(c("2009-04-30","2009-05-07"))
 par(bg="deepskyblue")
@@ -247,7 +249,7 @@
 legend("bottom", lty=1, leg=0:8, title="number of mutations", col=1:9,lwd=2, horiz=TRUE)
 
 
-## THIRD STAGE
+## THIRD STAGE:
 ## PANDEMIC
 curRange <- as.POSIXct(c("2009-05-15","2009-05-25"))
 par(bg="deepskyblue")



More information about the adegenet-commits mailing list