Expand scale limits to make them symmetric around zero. Can be
passed as argument to parameter limits
of continuous scales from
packages 'ggplot2' or 'scales'. Can be also used to obtain an enclosing
symmetric range for numeric vectors.
Arguments
- x
numeric The automatic limits when used as argument to a scale's
limits
formal parameter. Otherwise a numeric vector, possibly a range, for which to compute a symmetric enclosing range.