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.
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!
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 oflegend()
andadd_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 fromlegend()
to be ignored to avoid any undesirable behaviour.Closes #83.