Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function to produce html/latex table of taxonomic and associated data ? #200

Open
zachary-foster opened this issue Apr 18, 2019 · 3 comments

Comments

@zachary-foster
Copy link
Collaborator

It would be cool to be able have a function to produce tables like this from taxmap objects for use in Rmarkdown documents and publications:

image

It could output a table produced by kableExtra with a command like the following:

tax_kable(my_taxmap_obj, 
          ranks = c("Phylum", "Class", "Order", "Family", "Genus"), 
          data = c("OTUs represented" = "otu_count", "All roots" = "root_prop", "All soils" = "soil_prop"), 
          ...)

Things like "root_prop" would be user-specific variables accessible by all_names (table columns in the taxmap object) and ... would be passed to kable or kableExtra.

@sckott
Copy link
Contributor

sckott commented Apr 23, 2019

cool idea! would it require a bunch of dependencies?

@zachary-foster
Copy link
Collaborator Author

I think it would just need knitr and kableExtra. I imagine most people would have knitr anyway, but I am not sure how many dependencies kableExtra has.

I was thinking about separating the plotting of heat trees from metacoder into a new package focused on visualization of hierarchical data, and reserving metacoder for microbiome community ecology type stuff. If not in the taxa package, this might be good in the package that heat trees go in.

@sckott
Copy link
Contributor

sckott commented Apr 24, 2019

that sorta makes sense i think, if you're going to break out a new pkg focusing on plotting, then might make sense to put this fxn in that pkg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants