Description Usage Arguments Value Examples
This function follows the squish_infinite
function, but allows extentions that work with other objects than numeric
vectors.
1 2 3 4 5 6 7 8 9 10  | squish_infiniteThis(x, range = NULL, aes = "z")
## S4 method for signature 'numeric,numeric_OR_missing'
squish_infiniteThis(x, range = c(0, 1), aes = "z")
## S4 method for signature 'Rle,numeric_OR_missing'
squish_infiniteThis(x, range = c(0, 1), aes = "z")
## S4 method for signature 'WoodenHorse,numeric_OR_missing'
squish_infiniteThis(x, range = c(0, 1), aes = "z")
 | 
x | 
 A vector of values to manipulate.  | 
range | 
 A range representing object.  | 
aes | 
 An aesthetic for which to evaluate the function.  | 
The x argument, but with infinite values squished to the
range.
1 2 3 4 5  | # For regular numeric vectors
squish_infiniteThis(c(-Inf, -1, 0, 1, 2, Inf))
# For Rle-class
squish_infiniteThis(Rle(c(Inf, 2, 3, -Inf), 1:4), c(2, 3))
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.