Yes ,I found tkplot was not supported on R version 3.3.0. What should I do now ?
Recently I used 'clusterProfiler' package to visualize biological networks. However, I ran into the following questions when I tried 'cnetplot':
An error occured when I used 'fixed=F' parameters runing cnetplot,
e.g. cnetplot(x, fixed=F)
Error in structure(.External(.C_dotTclObjv, objv), class = "tclObj") :
[tcl] invalid command name "font".
I searched a lot but couldn't find a way to solve. Do you have any clues ?BTW, I am using Rstudio 3.3.0. Thank you so much for your kind help ! I am looking forward to your reply .
3 answers
These errors occur just when you run these commands in Rstudio. So only need to do this in linux terminal.
this may due to your igraph installation. It seems that tkplot is not supported.
please try:
library(igraph)
net <- graph( edges=c(1,2, 2,3, 3, 1), n=3, directed=F )
tkplot(net)
I tried the command you sent, after tkplot (net ), appeared the same error : Error in structure(.External(.C_dotTclObjv, objv), class = "tclObj") : [tcl] invalid command name "font"
Log in to answer this question.
