Learn R Programming

egg (version 0.4.5)

symmetric_range: 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

Run this code
# NOT RUN {
library(ggplot2)
ggplot(mpg, aes(cty, hwy)) + 
geom_point() +
  scale_x_continuous(limits = symmetric_range)
# }

Run the code above in your browser using DataLab