dodge_legend: Move legend to avoid overlapping data points

View source: R/dodge_legend.R

dodge_legendR Documentation

Move legend to avoid overlapping data points

Description

Used as argument to legend.position to move the legend to bottom when high data values would overlap it.

Usage

dodge_legend(x, m, limit, points)

Arguments

x

plot data

m

the measure included in the plot i.e. OP-2

limit

the highest data value that won't move the legend

points

the number of points on the x axis. Currently includes options for 2-4.


ReverieNB/FMT-Package documentation built on March 10, 2023, 1:31 p.m.