I'm completely new to R. I'm working in Social network analysis and want to visualize a network plot. I installed various packages like igraph, ggplot2, tcltk etc.. I have a code as follows:
network <- as.matrix(x)
g1 <- graph.adjacency(network)
tkplot(g1)
When I run this code, i got following error:
Error in structure(.External("dotTclObjv", objv, PACKAGE = "tcltk"), class = "tclObj") :
[tcl] invalid command name "font".
I tried searching for the answer but could not clearly understand how to resolve it. Can somebody please help me to resolve this error?
I'm using R on a server through RStudio.