Description Usage Arguments Value Examples
This function takes a numeric vector and returns a range of the negative and positive of the element with the highest absolute value. The lower bound is rounded down to the next integer, the upper bound rounded up. It is intended to set even limits on plots when called on the breaks or data values corresponding to an aesthetic, and usefully always returns an interval containing 0.
1 | even_lims(vec)
|
vec |
A vector, typically a row or column representing a dimension to plot |
A length 2 vector consisting of the negative and positive of the value of @param vec with the greatest absolute value, respectively rounded down and up.
1 2 | # Create four-quadrant plot
library(ggplot2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.