User Tools

Site Tools


data_visualization

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
data_visualization [2018/12/18 15:28] – [매트릭스 형태의 텍스트 파일을 R에서 읽어들이기(1)] hyjeongdata_visualization [2023/02/15 10:43] (current) – [Heatmap 그림과 phylogenetic tree의 결합] hyjeong
Line 132: Line 132:
   > d = read.table("matrix_pyani.tab",sep="\t",header=T,row.names=1)   > d = read.table("matrix_pyani.tab",sep="\t",header=T,row.names=1)
   > fit = hclust(dist(as.matrix(d)),method="average")   > fit = hclust(dist(as.matrix(d)),method="average")
 +  # heatmap.2() 함수는 complete agglomeration method를 클러스터링에 사용한다. average method는 UPGMA와 같다.
   > my_tree=as.phylo(fit)   > my_tree=as.phylo(fit)
   > write.tree(phy=my_tree,file="test.newick")   > write.tree(phy=my_tree,file="test.newick")
Line 137: Line 138:
 [[https://stackoverflow.com/questions/21727820/how-to-create-a-newick-file-from-a-cluster-in-r|How to create a newick file from a cluster in R?]] [[https://stackoverflow.com/questions/21727820/how-to-create-a-newick-file-from-a-cluster-in-r|How to create a newick file from a cluster in R?]]
  
-그 반대로, 다른 도구를 통해 만든 tree를 heatmap.2() 함수에 공급할 방법은 없을까? 내가 알기로 그것은 불가능하고, 아래에서 소개할 iTOL을 이용하는 것이 바람직하다. 물론 이것이 유일한 방법은 아니다.+그 반대로, 다른 도구를 통해 만든 tree를 heatmap.2() 함수에 공급할 방법은 없을까? 내가 알기로 그것은 불가능하고, 아래에서 소개할 iTOL을 이용하는 것이 바람직하다. 물론 이것이 유일한 방법은 아니다. 바로 [[https://jokergoo.github.io/ComplexHeatmap-reference/book/|ComplexHeatmap 라이브러리]]가 있다.  
 + 
 +다음은 보다 상세한 heatmap 작성 관련 기술 문서이다. 
 + 
 +[[https://www.datanovia.com/en/lessons/heatmap-in-r-static-and-interactive-visualization/|Heatmap in R: Static and interactive visualization]] - heatmap(), heatmap.2(), interactive heatmap using 3dheatmap(), complexheatmap...
 ===== iTOL 이용하기 ===== ===== iTOL 이용하기 =====
 [[https://jonasjacek.github.io/colors/|256 color cheat sheet]] [[https://jonasjacek.github.io/colors/|256 color cheat sheet]]
data_visualization.1545114515.txt.gz · Last modified: (external edit)