palaeoverse / rphylopic

Get Silhouettes of Organisms from PhyloPic
https://rphylopic.palaeoverse.org
GNU General Public License v3.0
91 stars 9 forks source link

Add PhyloPic base R legend #99

Closed LewisAJones closed 9 months ago

LewisAJones commented 10 months ago

This PR adds the function add_phylopic_legend(). It allows users to add a legend using PhyloPic silhouettes to base R. The function makes use of legend() and add_phylopic_base() to do most of the groundwork. I’ve tried to make the function as flexible as possible while also trying to maintain ease of use. Note, I’ve forced some arguments from legend() to be ignored to avoid any undesirable behaviour.

Closes #83.

LewisAJones commented 10 months ago

Thanks for the quick review and constructive feedback @willgearty! I’ve gone ahead and implemented your changes. Let me know if you see any final tweaks needed!