symmetric: Enforce Symmetry

View source: R/isometric.R

symmetricR Documentation

Enforce Symmetry

Description

Enforces symmetric plot design: y axis includes opposites of the range of the data.

Usage

symmetric(expand = c(top = FALSE, bottom = FALSE))

Arguments

expand

amount of scale expansion to allow, e.g. 0.05 (default 0 for best fidelity)

Value

ggplot_symmetric

See Also

ggplot_add.ggplot_symmetric

Other isometric: ggplot_add.ggplot_isometric(), ggplot_add.ggplot_symmetric(), isometric()

Examples

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


yamlet documentation built on Jan. 10, 2026, 9:07 a.m.