The row order in the heatmap is "Hornet Sportabout", "Hornemt 4 Drive", "Valiant", "Datsun 710", "Mazda RX4", "Mazda RX4 Wag", if want the heatmap displays reverse row name order like "Mazda RX4 Wag", "Mazda RX4", "Datsun 710", "Valiant", "Hornemt 4 Drive", "Hornet Sportabout".
How can achieve it? Thank you.
Since you are using cluster_row = TRUE, the order is largely determined by the clustering. So you can't choose an order yourself, as it could be incompatible with the clustering.
However, you can provide a function that will be called after clustering. See the clustering_callback argument.