Description Usage Arguments Details Value References Examples
Order matrix or phyloseq OTU table based on the neatmap approach.
1 2 3 4 5 6 7 8 9 |
x |
A matrix or phyloseq object. |
arrange |
Order 'features', 'samples' or 'both' (for matrices). For matrices, it is assumed that the samples are on the columns and features are on the rows. For phyloseq objects, features are the taxa of the OTU table. |
method |
Ordination method. Only NMDS implemented for now. |
distance |
Distance method. See |
first.feature |
Optionally provide the name of the first feature to start the ordering |
first.sample |
Optionally provide the name of the first sample to start the ordering |
... |
Arguments to pass. |
Borrows elements from the heatmap implementation in the phyloseq package. The row/column sorting is not available there as a separate function. Therefore I implemented this function to provide an independent method for easy sample/taxon reordering for phyloseq objects. The ordering is cyclic so we can start at any point. The choice of the first sample may somewhat affect the overall ordering
Sorted matrix
This function is partially based on code derived from the phyloseq package. However for the original neatmap approach for heatmap sorting, see (and cite): Rajaram, S., & Oono, Y. (2010). NeatMap–non-clustering heat map alternatives in R. BMC Bioinformatics, 11, 45.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.