isometric: Enforce Isometry

View source: R/isometric.R

isometricR Documentation

Enforce Isometry

Description

Enforces isometric plot design: aspect ratio of 1, identical ranges for x and y axes. Can be used meaningfully with + facet_wrap(scales = 'free' ...).

Usage

isometric(expand = 0)

Arguments

expand

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

Value

ggplot_isometric

See Also

ggplot_add.ggplot_isometric

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

Examples

library(magrittr)
library(ggplot2)
data.frame(x = 1:5, y = 3:7) %>%
ggplot(aes(x, y)) + geom_point() + isometric()

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