# How are taxa sorted in the taxa bar plot?

**URL:** <https://forum.qiime2.org/t/how-are-taxa-sorted-in-the-taxa-bar-plot/32355>\
**Category:** User Support\
**Created:** [January 20, 2025, 9:00am UTC](https://forum.qiime2.org/t/how-are-taxa-sorted-in-the-taxa-bar-plot/32355 "2025-01-20T09:00:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fgara](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/f/439d5e/32.png) [@fgara](https://forum.qiime2.org/u/fgara)\
**Post date:** [January 20, 2025, 9:00am UTC](https://forum.qiime2.org/t/how-are-taxa-sorted-in-the-taxa-bar-plot/32355/1 "2025-01-20T09:00:00Z")

</div>

Hello awesome people,

What is sorting in the taxa bar plot based on?

Are the taxa sorted based on their percent abundance (from largest to smallest? I initially thought this was the case, but it seemed that it was not? Or perhaps I made some mistakes?

Please kindly enlighten me... Thank you so much!

---

<div class="post-metadata">

**Author:** ![salias](https://forum.qiime2.org/user_avatar/forum.qiime2.org/salias/32/18594_2.png) [@salias](https://forum.qiime2.org/u/salias)\
**Post date:** [January 20, 2025, 10:32am UTC](https://forum.qiime2.org/t/how-are-taxa-sorted-in-the-taxa-bar-plot/32355/2 "2025-01-20T10:32:34Z")

</div>

Hi @fgara ,

Looking at the [example visualization from QIIME 2 View](https://view.qiime2.org/visualization/?src=https://docs.qiime2.org/2024.2/data/tutorials/moving-pictures/taxa-bar-plots.qzv), and also some of my own QZV files, I think they are ordered based on overall abundance across all samples/conditions... I'll search for any hint in the plugin code and update this comment with whatever I find.

**Edit:** I could not find any explicit ordering in the code, but some issues in the GitHub repo ([#5](https://github.com/qiime2/q2-taxa/issues/5), [#25](https://github.com/qiime2/q2-taxa/issues/25)) imply that the order is based on abundance.

Best,

Sergio

---

<div class="post-metadata">

**Author:** ![system](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/3X/2/1/21af5fe23cb6f4579467c66a9ed94e55274ca7bd.svg) [@system](https://forum.qiime2.org/u/system)\
**Post date:** [February 20, 2025, 4:32pm UTC](https://forum.qiime2.org/t/how-are-taxa-sorted-in-the-taxa-bar-plot/32355/3 "2025-02-20T16:32:56Z")

</div>

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
