mf_get_leg_pos function

Get the optimal position of a legend

Get the optimal position of a legend

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

mf_get_leg_pos(x, n = 1)

Arguments

  • x: object of class sf
  • n: number of positions to get (1 or 2)

Returns

A vector of position is returned

Examples

mtq <- mf_get_mtq() mf_get_leg_pos(mtq)
  • Maintainer: Timothée Giraud
  • License: GPL (>= 3)
  • Last published: 2024-10-22