블로그 게시물 more network layouts을 기반으로 R에서 축소 가능한 네트워크를 구현하려고합니다. 그러나 나는 항상 Object not found
의 오류를 얻고 있습니다.Collapsible network plot in R
devtools::install_github
devtools::install_github("timelyportfolio/[email protected]/d3.chart.layout")
library(htmltools)
library(networkD3)
hc = hclust(dist(mtcars))
treeNetwork(
as.treeNetwork(hc, "mtcars")
)
tagList(
lapply(
c("tree.cartesian"
,"tree.radial"
,"cluster.cartesian"
,"cluster.radial"
)
,function(chartType){
hierNetwork(as.treeNetwork(hc), type=chartType, zoomable=T, collapsible=T)
}
)
)
tree.cartesian
1
우리가 어떻게 네트워크를 구축 할 수있는 가장자리 파일이 그래프를 사용하여 편집? 예 :
From To
A B
A C
A D
D L
L J
J T
B O
"개체를 찾을 수 없음"은 어디에서 나타 납니까? – Marcelo
@Marcelo - 콘솔에서 – NinjaR
나는 코드의 어느 줄에서 오류가 발생했는지 물어 보려고했다. - – Marcelo