make_square: Uses the number of columns and number of rows in a heatmap to...

Description Usage Arguments Value

Description

Uses the number of columns and number of rows in a heatmap to fix the aspect ratio such that the cells are perfectly square.

Usage

1
make_square(p, fudge = 1)

Arguments

p

a ggplot object with discrete x and y aesthetics set

fudge

a fudge factor multiplying the aspect ratio (< 1 = wider, > 1 = taller). This does not appear to work right now.

Value

the same object, with the aspect ratio fixed to be the (number of rows)/(number of columns)


eclarke/eclectic documentation built on May 15, 2019, 7:54 p.m.