joey711 / phyloseq

phyloseq is a set of classes, wrappers, and tools (in R) to make it easier to import, store, and analyze phylogenetic sequencing data; and to reproducibly share that data and analysis with others. See the phyloseq front page:
http://joey711.github.io/phyloseq/
567 stars 187 forks source link

reorganization of x-axis for heat plot, using factors as x-axis #1729

Open science-chump opened 4 months ago

science-chump commented 4 months ago

Hello,

Love phyloseq and all the work you do. I am working on making a heat plot and was wondering if there was a way to remove the sample names in the x axis and replace it with a factor.

Here is the plot I generated from a phyloseq object: image

Obviously this figure is no good because I have too many samples and thus you cannot read what the X-axis means. Rather than subsetting my samples, I would really like the X-axis to display a block as factors. Here is what I am trying to do, where drift 1, 2 and 3 are factors in my metafile.

image

Is something like this possible to do in phyloseq without having to frankenstein multiple different heat maps?