ggplot2 heatmap not arranging from highest to lowest

You have to reorder your y aesthetic in the ggplot call

y = reorder(track_name, value)
1 Like