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

See Also

Other process_functions: util_abbreviate(), util_all_is_integer(), util_attach_attr(), util_bQuote(), util_backtickQuote(), util_count_NA(), util_extract_matches(), util_par_pmap(), util_setup_rstudio_job(), util_suppress_output()


dataquieR documentation built on May 29, 2024, 7:18 a.m.