out_of_bounds: Out-of-bounds functions

Description Usage Arguments See Also

Description

These functions were taken from the scales package and made as S3 generics such that S3 methods can be written for these depending on the classes of the x and range arguments.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
censor(x, range = c(0, 1), only.finite = TRUE)

## S3 method for class 'numeric'
censor(x, range = c(0, 1), only.finite = TRUE)

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

## S3 method for class 'numeric'
squish(x, range = c(0, 1), only.finite = TRUE)

squish_infinite(x, range = c(0, 1))

## S3 method for class 'numeric'
squish_infinite(x, range = c(0, 1))

Arguments

x

A vector on which an out-of-bounds operation must be performed.

range

An indicator or range outside of which x is considered

only.finite

If TRUE (the default), will only modify finite values. out-of-bounds.

See Also

The documentation for these functions in the scales package: censor, squish and squish_infinite.


teunbrand/ggvctrcoords documentation built on Jan. 12, 2020, 6:25 p.m.