symmetric_range {egg}R Documentation

symmetric_range

Description

Function to ensure that a position scale is symmetric about 0

Usage

symmetric_range(range)

Arguments

range

range of the data

Value

symmetric range

Examples

library(ggplot2)
ggplot(mpg, aes(cty, hwy)) + 
geom_point() +
  scale_x_continuous(limits = symmetric_range)

[Package egg version 0.4.5 Index]