spreadout: Spread numeric values out to a minimum spacing.

Description Usage Arguments Details Value Author(s)

View source: R/spreadout.R

Description

Spreads a vector of numeric values out by increasing any intervals smaller than mindist.

Usage

1
 spreadout(x,mindist)

Arguments

x

A numeric vector that may contain NAs.

mindist

The minimum interval allowed in the output.

Details

spreadout orders the vector x and begins at the middle, increasing any intervals between values to mindist. The function is designed to avoid crowding of labels on a plot, but may have other uses.

Value

New values with a minimum interval of mindist. NAs are preserved.

Author(s)

Jim Lemon


clinsig documentation built on May 2, 2019, 8:30 a.m.

Related to spreadout in clinsig...