Order Rows & Columns of Heatmap in R (2 Examples) | Manual & Without Dendrogram | heatmap() Function
Автор: Statistics Globe
Загружено: 2022-09-08
Просмотров: 2018
Описание:
How to sort the rows and columns of a heatmap in the R programming language. More details: https://statisticsglobe.com/order-row...
R code of this video:
set.seed(3255434) # Set seed for reproducibility
my_mat <- matrix(rnorm(25, 0, 10), nrow = 5) # Create example matrix
colnames(my_mat) <- paste0("col", 1:5) # Specify column names
rownames(my_mat) <- paste0("row", 1:5) # Specify row names
my_mat # Print example matrix
heatmap(my_mat) # Draw default heatmap
heatmap(my_mat, # Draw heatmap without dendrograms
Rowv = NA,
Colv = NA)
Follow me on Social Media:
Facebook – Statistics Globe Page: / statisticsglobecom
Facebook – R Programming Group for Discussions & Questions: / statisticsglobe
Facebook – Python Programming Group for Discussions & Questions: / statisticsglobepython
LinkedIn – Statistics Globe Page: / statisticsglobe
LinkedIn – R Programming Group for Discussions & Questions: / 12555223
LinkedIn – Python Programming Group for Discussions & Questions: / 12673534
Twitter: / joachimschork
Music by bensound.com
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: