We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 035cb3e commit 186183aCopy full SHA for 186183a
Heatmap_tutorial.md
@@ -153,7 +153,9 @@ my_data_reordered <- my_data %>%
153
mutate(col = reorder(col, -n)) %>% # this reorders the columns
154
select(-n) %>%
155
inner_join(my_data_peak_values_reordered, by = "row") %>%
156
- mutate(row = reorder(row, n)) # this reorders the rows
+ mutate(peaked_at = reorder(peaked_at, n)) %>%
157
+ mutate(order_rows = as.numeric(peaked_at)) %>%
158
+ mutate(row = reorder(row, order_rows)) # this reorders the rows by the "peaked_at" column.
159
160
161
head(my_data_reordered)
0 commit comments