ropensci-archive / taxview

:warning: ARCHIVED :warning: Summarise and visualize data sets wrt taxonomy
Other
7 stars 0 forks source link

Viz notes #5

Closed sckott closed 2 years ago

sckott commented 6 years ago
# facet by rank
x %>% <other ggplot2 code> %>% facet_rank(phylum)
# custom name vs. name OR rank vs. rank
x %>% <other ggplot2 code> %>% compare_ranks(phylum)
x %>% <other ggplot2 code> %>% compare_names(Helianthus, Quercus)

with each facet being a diff. phylum


any other ideas for taxonomically based vizualizations ? @cboettig @zachary-foster

p.s.. Zach, we can already leverage viz tools you have in metacoder I think or just point people to metacoder?

zachary-foster commented 6 years ago

Hi Scott, is this package an extension to ggplot2? I dont remember seeing it before.

any other ideas for taxonomically based vizualizations ?

Anything meant for hierarchal data has some potential. Here are a few:

Zach, we can already leverage viz tools you have in metacoder I think or just point people to metacoder?

the metacoder heat_tree function returns uses ggplot2, so probably. I am planning on rewriting it soon, so if there is any functionality that would be helpful, feel free to open an issue to request it. A benefit of using metacoder is that taxa is already used there as inputs.

Btw, I have plans to add phylopic images to metacoder trees as well

sckott commented 6 years ago

no, not a ggplot2 extension, just part of it will be viz. not sure where this is going yet, just exploring

thanks! @zachary-foster i'll check these out

cboettig commented 6 years ago

Adding to the random notes: some nice tree visualizations in ggraph as well, includes treemaps and particularly the dendrogram layouts. https://cran.r-project.org/web/packages/ggraph/vignettes/Layouts.html Currently these don't include branch lengths, but could be a nice visualization for the rank-based trees we get from stuff like ncbi and itis. @thomasp85 has done a really nice job in making these plots work pretty well with very large graphs; both in performance terms and in creating a readable / pleasing visual. Might be very cool to combine with phylopic silhouettes....

thomasp85 commented 6 years ago

Fwiw branch length will get supported in the next development cycle

sckott commented 6 years ago

thanks @cboettig and @thomasp85

note to self to check out: https://cran.rstudio.com/web/packages/data.tree/