[Vegan-commits] r960 - in branches/1.15: R man
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Thu Aug 27 10:17:14 CEST 2009
Author: jarioksa
Date: 2009-08-27 10:17:12 +0200 (Thu, 27 Aug 2009)
New Revision: 960
Modified:
branches/1.15/R/plot.nestedtemp.R
branches/1.15/man/nestedtemp.Rd
Log:
merged rev 602: either row or col names can be turned off in plot.nestedtemp
Modified: branches/1.15/R/plot.nestedtemp.R
===================================================================
--- branches/1.15/R/plot.nestedtemp.R 2009-08-27 08:10:44 UTC (rev 959)
+++ branches/1.15/R/plot.nestedtemp.R 2009-08-27 08:17:12 UTC (rev 960)
@@ -11,8 +11,14 @@
image(z, axes = FALSE, col = col, ...)
box()
lines(x$smooth$x, 1 - x$smooth$y)
- if (names) {
- axis(3, at = seq(0,1,len=ncol(x$u)), labels=colnames(x$u), las=2, ...)
- axis(2, at = seq(1,0,len=nrow(x$u)), labels=rownames(x$u), las=2,...)
+ if (length(names) == 1)
+ names <- rep(names, 2)
+ if (names[1]) {
+ axis(2, at = seq(1, 0, len = nrow(x$u)), labels = rownames(x$u),
+ las = 2, ...)
}
+ if (names[2]) {
+ axis(3, at = seq(0, 1, len = ncol(x$u)), labels = colnames(x$u),
+ las = 2, ...)
+ }
}
Modified: branches/1.15/man/nestedtemp.Rd
===================================================================
--- branches/1.15/man/nestedtemp.Rd 2009-08-27 08:10:44 UTC (rev 959)
+++ branches/1.15/man/nestedtemp.Rd 2009-08-27 08:17:12 UTC (rev 960)
@@ -36,7 +36,8 @@
\item{x}{Result object for a \code{plot}.}
\item{col}{Colour scheme for matrix temperatures.}
\item{kind}{The kind of plot produced.}
- \item{names}{Label columns and rows in the plot using names in \code{comm}.}
+ \item{names}{Label columns and rows in the plot using names in \code{comm}.
+ If it is a logical vector of length 2, row and column labels are returned accordingly.}
\item{order}{Order rows and columns by frequencies.}
\item{\dots}{Other arguments to functions.}
}
More information about the Vegan-commits
mailing list