discardOob: Discard out of bounds values

Description Usage Arguments Value Examples

Description

Typically calls censorThis on the values and subsequently discards NA values.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
discardOob(x, range = NULL, aes = "z")

## S4 method for signature 'ANY,missing'
discardOob(x, range = NULL, aes = "z")

## S4 method for signature 'numeric,numeric'
discardOob(x, range = c(0, 1), aes = "z")

## S4 method for signature 'GenomicRanges,GenomicRanges'
discardOob(x, range = GRanges(NA_character_, IRanges(0, 1)), aes = "z")

## S4 method for signature 'WoodenHorse,ANY'
discardOob(x, range = c(0, 1), aes = "z")

Arguments

x

A vector of values to manipulate.

range

A range representing object.

aes

An aesthetic for which to evaluate the function.

Value

The values in x but with out of bounds values discarded.

Examples

1
2
# Regular numeric vectors
discardOob(c(0:5), c(2, 4))

teunbrand/ggnomics documentation built on Aug. 2, 2020, 7:34 p.m.