Comments (2)
Hi Brigitte,
Not currently possible unfortunately, but could be a nice feature for the future.
If you really need it, the code from inside ps_seriate
can get you the seriation object which has the clustering dendrogram inside it. You could then plot this alongside the bar chart with ggdendro or dendextend http://andrie.github.io/ggdendro/
(but indeed this would be a bit of manual work)
Code below adapted from inside ps_seriate
method = "OLO_ward"
dist = "bray"
tax_transform = "identity"
# transform taxa for ordering
ps_transformed <- ps_get(tax_transform(ps, trans = tax_transform))
# calculate distance between samples
distMat <- dist_get(dist_calc(data = ps_transformed, dist = dist))
ser <- seriation::seriate(x = distMat, method = method)
Out of interest, why do you want the clustering dendrogram?
from microviz.
Hi David,
Thanks for the suggestion! I want the clustering to see if there are some groups visible based on the microbiome composition. I am going to try to use your suggestion. Thanks!
from microviz.
Related Issues (20)
- comp_barplot of raw abundances HOT 2
- some GUSTAME site links have changed HOT 1
- Logical variable becomes numeric when plotting CCA HOT 2
- how can i order my samples and show their names? HOT 3
- Cannot build PCoA plot using ord_plot HOT 2
- dominant taxa in each sample HOT 2
- phylogenetic tree disappeared after tax_transform() step HOT 2
- Annotated heatmaps - error in sample_anno HOT 4
- Taxa cannot be aggregated at rank: Genus HOT 2
- cor_heatmap taxon_renamer or alternative option for labeling rows HOT 3
- comp_barplot seem to have issues with domain being unknown HOT 2
- Error in access(object, "otu_table", errorIfNULL) : otu_table slot is empty. HOT 2
- Strange behaviour when using comp_barplot with facet_grid HOT 2
- tax.fix(), and "Problematic Genus values detected in tax_table" HOT 3
- [FR] Add sankey/alluvial plots to visualize abundances HOT 2
- Tax_fix no non-unknown values HOT 1
- Labelling samples in ord_plot PCoA HOT 1
- Use of custom transofmration in linear models. HOT 1
- Can I make a correlation heatmap between taxa and categorical variable? HOT 1
- comp_barplot reduce/remove space between axes and bars
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 microviz.