heatmap.2 specify row order OR prevent reorder?
I'm trying to generate some plots of log-transformed fold-change data using heatmap.2 (code below). I'd like to order the rows in the heatmap by the values in the last column (largest to smallest). The rows are being ordered automatically (I'm unsure the precise calculation used 'under the hood') and as shown in the image, there is some clustering being performed. sample_data gid 2hrs 4hrs 6hrs 8hrs 1234 0.5 0.75 0.9 2 2234 0 0 1.5 2 3234 -0.5 0.1 1 3 4234 -0.2 -0.2 0.4 2 5234 -0.5 1.2 1 -0.5 6234 -0.5 1.3 2 -0.3 7234 1 1.2 0.5 2 8234 -1.3 -0.2 2 1.2 9234 0.2 0.2 0.2 1 0123 0.2 0.2 3 0.5 code