File: rmClose.Rd

package info (click to toggle)
hmisc 5.2-4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,044 kB
  • sloc: asm: 28,905; f90: 590; ansic: 415; xml: 160; fortran: 75; makefile: 2
file content (25 lines) | stat: -rw-r--r-- 665 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rmClose.r
\name{rmClose}
\alias{rmClose}
\title{rmClose}
\usage{
rmClose(x, minfrac = 0.05)
}
\arguments{
\item{x}{a numeric vector with no \code{NA}s}

\item{minfrac}{minimum allowed spacing between consecutive ordered \code{x}, as a fraction of the range of \code{x}}
}
\value{
a sorted numeric vector of non-close values of \code{x}
}
\description{
Remove close values from a numeric vector that are not at the outer limtis.  This is useful for removing axis breaks that overlap when plotting.
}
\examples{
rmClose(c(1, 2, 4, 47, 48, 49, 50), minfrac=0.07)
}
\author{
Frank Harrell
}