mf_get_leg_pos: Get the optimal position of a legend

Description Usage Arguments Value Examples

View source: R/mf_get_leg_pos.R

Description

Find the optimal for one or two legends. The optimal position is a position that minimizes overlap between a spatial object and a legend.

Usage

1
mf_get_leg_pos(x, n = 1)

Arguments

x

object of class sf

n

number of positions to get (1 or 2)

Value

A vector of position is returned

Examples

1
2
mtq <- mf_get_mtq()
mf_get_leg_pos(mtq)

mapsf documentation built on Sept. 24, 2021, 5:06 p.m.