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)
object of class
number of positions to get (1 or 2)
A vector of position is returned
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.