This function provides a visually interactive way to pick an image and valid uuid for an input taxonomic name. As multiple silhouettes can exist for each organism in PhyloPic, this function is useful for choosing the right image/uuid for the user.
Arguments
- name
character
. A taxonomic name. Different taxonomic levels are supported (e.g. species, genus, family).- n
numeric
. How many uuids should be viewed? Depending on the requestedname
, multiple silhouettes may exist. Ifn
exceeds the number of available images, all available uuids will be returned. Defaults to 5. Only relevant ifname
supplied.- uuid
character
. A vector (or list) of valid PhyloPic silhouette uuids, such as that returned byget_uuid()
orresolve_phylopic()
.- view
numeric
. Number of silhouettes that should be plotted at the same time. Defaults to 1.- filter
character
. Filter uuid(s) by usage license. Use "by" to limit results to image uuids which do not require attribution, "nc" for image uuids which allow commercial usage, and "sa" for image uuids without a ShareAlike clause. The user can also combine these filters. Only relevant ifname
supplied.- auto
numeric
. This argument allows the user to automate input into the menu choice. If the input value is1
, the first returned image will be selected. If the input value is2
, requested images will be automatically cycled through with the final image returned. If the input value is3
, a list of attribution information for each image is returned (this functionality is principally intended for testing). IfNULL
(default), the user must interactively respond to the called menu.
Value
A Picture object is returned. The uuid of the selected image is saved as the "uuid" attribute of the returned object and is also printed to console.
Details
This function allows the user to visually select the desired image
from a pool of silhouettes available for the input name
.
Note that while the view
argument can be any positive integer,
weaker/older computers may have issues displaying very large numbers of
images at the same time (i.e. view
> 9). If no images are displayed in
your plotting environment, try decreasing the value of view
.