symmetric_range: symmetric_range

Description Usage Arguments Value Examples

View source: R/symmetric_scale.r

Description

Function to ensure that a position scale is symmetric about 0

Usage

1

Arguments

range

range of the data

Value

symmetric range

Examples

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

baptiste/egg documentation built on May 30, 2021, 1:24 a.m.