Comments (5)
(turns out the new API is not ready yet, maybe in a few months or so; for now we'll work with the current API)
glad that code works!
from rphylopic.
thanks @mcsiple ! Can you redo your session info after loading rphylopic
?
from rphylopic.
As a side note ...
can you open a new issue for this? seems different enough, and i need a bit more explanation for me to understand
from rphylopic.
there is a new API for phylopic #23 - so things may change soon...
Having said that, based on current setup ... i think you want the following workflow:
# a name UID, e.g., from name_search() call
id <- "f3254fbd-284f-46c1-ae0f-685549a6a373"
# then use name_images(): you want an id in the "same" slot
z <- name_images(uuid = id)
# then use image_data with the resulting uid
png <- image_data(z$same[[1]]$uid, size = "64")
However, with your taxon of interest, there seems to be no images:
harborseal <- name_search(text = "Phoca vitulina", options = "namebankID", verbose = TRUE)[[1]]
res <- lapply(harborseal$uid, name_images)
lapply(res, "[[", "same")
from rphylopic.
Thank you @sckott ! That is indeed the code I wanted. And I edited the session info.
Essentially I was looking for a way to quickly check whether any of the names in harborseal
were tied to images. I will copy-paste the issue above as a new issue (although I consider more a "potential new frill" than a problem with the package in its current form).
from rphylopic.
Related Issues (20)
- Example with silhouettes used NOT as points
- geom_phylopic requires image to be in a list
- Use /collections API endpoint HOT 2
- Add reminder to attribute silhouette creators on package load HOT 1
- silhouette legend for base R HOT 2
- Reflect size aesthetic in key_glyph_phylopic
- On load message HOT 1
- coord_sf and silhouette size
- Silhouette outlines being added by default
- Release rphylopic 1.2.1
- Release rphylopic 1.2.2
- Include rphylopic citation in get_attribution text
- Cheat sheet updates HOT 1
- pick_phylopic should take uuids
- Release rphylopic 1.3.0
- Add options for justification (e.g. vjust and hjust similar to geom_text()) HOT 1
- Specify width, instead of height, when plotting phylopics HOT 10
- pick_phylopic no longer prints attribution information in menu
- Release rphylopic 1.4.0
- Implement vcr to make tests work offline
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rphylopic.