Learn R Programming

yamlet (version 1.2.1)

symmetric: Enforce Symmetry

Description

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

Usage

symmetric()

Arguments

Value

ggplot_symmetric

See Also

ggplot_add.ggplot_symmetric

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

Examples

Run this code
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()

Run the code above in your browser using DataLab