我试图重现教程中的示例(第7页)
https://cran.r-project.org/web/packages/WeightedCluster/vignettes/WeightedCluster.pdf
开始之前
R> seqtreedisplay(wardTree, type="d", border=NA, showdepth=TRUE)
我需要安装GraphViz,但它不再在CRAN中,所以我从bioconductor安装它并且工作正常
source("https://bioconductor.org/biocLite.R")
biocLite("Rgraphviz")
我安装的库是 库(Rgraphviz) 它正确加载但在运行时 R> seqtreedisplay(wardTree,type =" d&#34 ;, border = NA,showdepth = TRUE)
我收到错误
Error in disstreedisplayInternal(tree = tree, filename = filename, tmpdisstree = tmpdisstree, :
[!] GraphViz was not found. If you haven't, please install GraphViz to use this function: see http://www.graphviz.org
[!] If GraphViz is installed on your computer, you need to specify the GraphViz installation directory using the argument gvpath='installdir'
[!] You can also add this directory to the PATH environment variable
[!] GraphViz installation directory usually looks like 'C:\Program Files\GraphViz'
In addition: Warning message:
running command 'C:\Windows\system32\cmd.exe /c " "\bin\dot.exe" -Tpng -otmpseqtree4585dc9564c.png tmpseqtree4585dc9564c.dot "' had status 1
那个应该安装和加载的库吗? 由于GraphViz之前的名称发生了变化,我感到很困惑,现在它似乎是Rgraphviz
答案 0 :(得分:0)
TraMineR
及其seqtreedisplay
函数不使用Rgraphviz
包。
要使用seqtreedisplay
,您需要安装(R
之外)独立的 GraphViz 程序,您可以从http://www.graphviz.org/下载该程序。
您可能需要在路径中添加该程序的路径。