Entering edit mode
6.6 years ago
Björn
▴
110
I have a column (country) with vectors in a file xyz which is a data.frame
Country
Germany
Switzerland
Germany
Germany
Switzerland
How can I reorder it to same countries.
Germany
Germany
Germany
Switzerland
Switzerland
The reordering must generate two distinct columns in heatmap.2
This ? https://stackoverflow.com/questions/14492893/ordering-a-vector-of-characters-in-r
By default it will be sorted from A to Z
It reorders the vectors but not in the heatmap.
Would you please show us the heatmap you are talking about following this process please : How to add images to a Biostars post