View source: R/pick_phylopic.R
pick_phylopic | R Documentation |
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.
pick_phylopic(
name = NULL,
n = 5,
uuid = NULL,
view = 1,
filter = NULL,
auto = NULL
)
name |
|
n |
|
uuid |
|
view |
|
filter |
|
auto |
|
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
.
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.
## Not run:
# Defaults pane layout
img <- pick_phylopic(name = "Canis lupus", n = 5)
# 3 x 3 pane layout
img <- pick_phylopic(name = "Scleractinia", n = 9, view = 9)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.