util_coord_flip: return a flip term for 'ggplot2' plots, if desired.

View source: R/util_coord_flip.R

util_coord_flipR Documentation

return a flip term for ggplot2 plots, if desired.

Description

return a flip term for ggplot2 plots, if desired.

Usage

util_coord_flip(w, h, p, ref_env, ...)

Arguments

w

width of the plot to determine its aspect ratio

h

height of the plot to determine its aspect ratio

p

the ggplot2 object, so far. If w or h are missing, p is used for an estimate on w and h, if both axes are discrete.

ref_env

environment of the actual entry function, so that the correct formals can be detected.

...

additional arguments for coord_flip or coord_cartesian

Value

coord_flip or coord_cartesian


dataquieR documentation built on July 26, 2023, 6:10 p.m.