trnc: Truncation of plots.

Description Usage Arguments Details Author(s) See Also Examples

View source: R/trnc.R

Description

Truncate to the specified window.

Usage

1
trnc(x, range = c(0, 1), only.finite = TRUE)

Arguments

x

Numeric vector of values to manipulate.

range

Numeric vector of length two giving desired output range.

only.finite

if TRUE (the default), will only modify finite values.

Details

trnc is a function for truncating data to a specified window. It is suitable for use in scale_{x,y}_{continuous,discrete}, for example.

Author(s)

Aaron A. King kingaa at umich dot edu

See Also

censor

Examples

1
trnc(c(-1,0.5,1,2,NA))

kingaa/aakmisc documentation built on Sept. 24, 2018, 2:17 a.m.