Rev 41502 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{sunflowerTable}\alias{sunflowerTable}\title{Multiplicities of (x,y) Points, e.g., for a Sunflower Plot}\description{Given (x,y) points, determine their multiplicity -- checking forequality only up to some (crude kind of) noise.}\usage{sunflowerTable(x, y = NULL, digits)}\arguments{\item{x,y}{numeric vectors of the same length; alternatively other(x,y) argument combinations as allowed by \code{\link{xy.coords}(x,y)}.}\item{digits}{integer specifying the significant digits to be used fordetermining equality of coordinates. These are compared afterrounding them via \code{\link{signif}(*,digits)}.}}\value{A list with three components of same length,\item{x}{x coordinates, rounded and sorted.}\item{y}{y coordinates, rounded (and sorted within \code{x}).}\item{number}{multiplicities (positive integers); i.e.,\code{number[i]} is the multiplicity of \code{(x[i],y[i])}.}}\seealso{\code{\link[graphics]{sunflowerplot}} which uses\code{sunflowerTable()}; \code{\link{signif}}.}\examples{sunflowerTable(iris[,3:4], digits = 6)## Discretized uncorrelated Gaussian:\dontshow{set.seed(1)}require(stats)xy <- data.frame(x = round(sort(rnorm(100))), y = rnorm(100))sunflowerTable(xy, digits = 1)}\keyword{dplot}