The R Project SVN R

Rev

Rev 59039 | Rev 84327 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 59039 Rev 61168
Line 14... Line 14...
14
}
14
}
15
\usage{
15
\usage{
16
xyTable(x, y = NULL, digits)
16
xyTable(x, y = NULL, digits)
17
}
17
}
18
\arguments{
18
\arguments{
19
  \item{x,y}{numeric vectors of the same length; alternatively other
19
  \item{x, y}{numeric vectors of the same length; alternatively other
20
    (x,y) argument combinations as allowed by \code{\link{xy.coords}(x,y)}.}
20
    (x, y) argument combinations as allowed by
-
 
21
    \code{\link{xy.coords}(x, y)}.}
21
  \item{digits}{integer specifying the significant digits to be used for
22
  \item{digits}{integer specifying the significant digits to be used for
22
    determining equality of coordinates.  These are compared after
23
    determining equality of coordinates.  These are compared after
23
    rounding them via \code{\link{signif}(*,digits)}.}
24
    rounding them via \code{\link{signif}(*, digits)}.}
24
}
25
}
25
\value{
26
\value{
26
  A list with three components of same length,
27
  A list with three components of same length,
27
  \item{x}{x coordinates, rounded and sorted.}
28
  \item{x}{x coordinates, rounded and sorted.}
28
  \item{y}{y coordinates, rounded (and sorted within \code{x}).}
29
  \item{y}{y coordinates, rounded (and sorted within \code{x}).}
29
  \item{number}{multiplicities (positive integers); i.e.,
30
  \item{number}{multiplicities (positive integers); i.e.,
30
    \code{number[i]} is the multiplicity of \code{(x[i],y[i])}.}
31
    \code{number[i]} is the multiplicity of \code{(x[i], y[i])}.}
31
}
32
}
32
\seealso{\code{\link{sunflowerplot}} which typically uses
33
\seealso{\code{\link{sunflowerplot}} which typically uses
33
  \code{xyTable()}; \code{\link{signif}}.
34
  \code{xyTable()}; \code{\link{signif}}.
34
}
35
}
35
\examples{
36
\examples{
36
xyTable(iris[,3:4], digits = 6)
37
xyTable(iris[, 3:4], digits = 6)
37
 
38
 
38
## Discretized uncorrelated Gaussian:
39
## Discretized uncorrelated Gaussian:
39
\dontshow{set.seed(1)}
40
\dontshow{set.seed(1)}
40
require(stats)
41
require(stats)
41
xy <- data.frame(x = round(sort(rnorm(100))), y = rnorm(100))
42
xy <- data.frame(x = round(sort(rnorm(100))), y = rnorm(100))