This functions assists with position by combining information on whether or not jitter is present in a plot, there is a categorical variable for coloring, and if the plot uses dodge positioning when coloring variable levels.

getPosition(jitter, cby, w = 0.2, h = 0, wd = 0.75, dodgeable = FALSE)

Arguments

jitter

logical.

cby

character, factor to color by.

w

width.

h

height.

wd

dodge width.

dodgeable

logical.

Value

a ggplot position function.

Examples

#not run