Skip to contents

Adds y axis symmetry to plot object.

Usage

# S3 method for class 'ggplot_symmetric'
ggplot_add(object, plot, object_name, ...)

Value

gg

See also

Examples

example(symmetric)
#> 
#> symmtr> library(magrittr)
#> 
#> symmtr> library(ggplot2)
#> 
#> symmtr> data.frame(x = 1:10, y = c(-2, 5, 0, -1, 4, 0, 1, -3, 3, 0)) %>%
#> symmtr+ ggplot(aes(x, y)) + geom_point() + symmetric()