oob_infinite {phylepic} | R Documentation |
Out of bounds handling
Description
This helper works the same way as scales::oob_censor()
and similar. Out of
bounds values are pushed to positive or negative infinity. This is not useful
for builtin ggplot layers which will display a warning and drop rows with
infinite values in required aesthetics. geom_calendar()
however uses the
infinite values to indicate out of bounds values explicitly on the plot.
Usage
oob_infinite(x, range = c(0, 1))
Arguments
x |
A numeric vector of values to modify. |
range |
A numeric vector of length two giving the minimum and maximum limit of the desired output range respectively. |
Value
A numerical vector of the same length as x
where out of bound
values have been replaced by Inf
or -Inf
accordingly.
[Package phylepic version 0.2.0 Index]