oob_infinite | R Documentation |
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.
oob_infinite(x, range = c(0, 1))
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. |
A numerical vector of the same length as x
where out of bound
values have been replaced by Inf
or -Inf
accordingly.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.