View source: R/get_attribution.R
get_attribution | R Documentation |
This function provides a convenient way to obtain attribution data
for PhyloPic images via an image uuid returned by get_uuid()
.
get_attribution(uuid = NULL, img = NULL, text = FALSE)
uuid |
|
img |
A Picture or png array object from
|
text |
|
This function returns image uuid
specific attribution data,
including: contributor name, contributor uuid, contributor contact,
image uuid, license, and license abbreviation. If text
is set to
TRUE
, a text paragraph with the contributor name, year of contribution,
and license type is returned.
A list
of PhyloPic attribution data for an image uuid
or
a text output of relevant attribution information.
# Get valid uuid
uuid <- get_uuid(name = "Acropora cervicornis")
# Get attribution data for uuid
attri <- get_attribution(uuid = uuid)
## Not run:
# Get list of valid uuids
uuids <- get_uuid(name = "Scleractinia", n = 5)
# Get attribution data for uuids
get_attribution(uuid = uuids, text = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.