diff --git a/NEWS.md b/NEWS.md index 97fa2e77..11e239af 100644 --- a/NEWS.md +++ b/NEWS.md @@ -4,6 +4,7 @@ * added warning when specified size is more than 1000 times smaller than the y-axis range (mostly useful for when making maps with coord_sf) (#86) * changed the defaults and behavior of the color and fill argument/aesthetics to better maintain backwards compatibility but also prevent unnecessary outlines (#87) * added resolve_phylopic (#66) +* pick_phylopic now accepts a list of uuids via the uuid argument (#95) # rphylopic 1.2.2 diff --git a/R/pick_phylopic.R b/R/pick_phylopic.R index 90a12843..889c7119 100644 --- a/R/pick_phylopic.R +++ b/R/pick_phylopic.R @@ -16,7 +16,8 @@ utils::globalVariables(c("x", "y", "uuid", "label")) #' of available images, all available uuids will be returned. Defaults to 5. #' Only relevant if `name` supplied. #' @param uuid \code{character}. A vector (or list) of valid PhyloPic -#' silhouette uuids, such as that returned by [get_uuid()]. +#' silhouette uuids, such as that returned by [get_uuid()] or +#' [resolve_phylopic()]. #' @param view \code{numeric}. Number of silhouettes that should be plotted at #' the same time. Defaults to 1. #' @param filter \code{character}. Filter uuid(s) by usage license. Use "by" diff --git a/R/resolve_phylopic.R b/R/resolve_phylopic.R index e4c07256..7e865069 100644 --- a/R/resolve_phylopic.R +++ b/R/resolve_phylopic.R @@ -62,7 +62,7 @@ #' # get a uuid for a single name #' resolve_phylopic(name = "Canis lupus") #' # get uuids for the taxonomic hierarchy -#' resolve_phylopic(name = "Canis lupus", hierarchy = TRUE) +#' resolve_phylopic(name = "Canis lupus", hierarchy = TRUE, max_ranks = 3) resolve_phylopic <- function(name, api = "gbif.org", hierarchy = FALSE, max_ranks = 5, n = 1, filter = NULL, url = FALSE) { url_arg <- url diff --git a/man/pick_phylopic.Rd b/man/pick_phylopic.Rd index 798f87f7..c99c6774 100644 --- a/man/pick_phylopic.Rd +++ b/man/pick_phylopic.Rd @@ -23,7 +23,8 @@ of available images, all available uuids will be returned. Defaults to 5. Only relevant if \code{name} supplied.} \item{uuid}{\code{character}. A vector (or list) of valid PhyloPic -silhouette uuids, such as that returned by \code{\link[=get_uuid]{get_uuid()}}.} +silhouette uuids, such as that returned by \code{\link[=get_uuid]{get_uuid()}} or +\code{\link[=resolve_phylopic]{resolve_phylopic()}}.} \item{view}{\code{numeric}. Number of silhouettes that should be plotted at the same time. Defaults to 1.} diff --git a/man/resolve_phylopic.Rd b/man/resolve_phylopic.Rd index 3b529a2d..6ff2896a 100644 --- a/man/resolve_phylopic.Rd +++ b/man/resolve_phylopic.Rd @@ -92,5 +92,5 @@ Database}} # get a uuid for a single name resolve_phylopic(name = "Canis lupus") # get uuids for the taxonomic hierarchy -resolve_phylopic(name = "Canis lupus", hierarchy = TRUE) +resolve_phylopic(name = "Canis lupus", hierarchy = TRUE, max_ranks = 3) }