Questions tagged [tkplot]

Interactive plotting of graphs

tkplot and its companion functions serve as an interactive graph drawing facility. Not all parameters of the plot can be changed interactively right now though, eg. the colors of vertices, edges, and also others have to be pre-defined.

24 questions
0
votes
1 answer

igraph package in r: How to label edges for a directed-acyclic-graph

I am very new to r and programming, so my knowledge is limited. I am using the igraph package and tkplot to make and present a directed acyclic graph. I managed to make a graph and I am trying to figure out how to add labels to each edge. My goal…
mitch.9
  • 1
  • 1
0
votes
0 answers

Is there a way to get coordinates when plotting with tkplot?

I am wondering if it is in some way possible to visualize a network with tkplot() function, move the nodes in a desired position and then get the coordinates of this position of nodes? Have you ever done this? Or what could be another way if I do…
0
votes
0 answers

interactive plotting with R and igraph: tkplot crashes

There isn't much information out there about user experience with tkplot. It just crashes for me. I have R version 3.2.3 and igraph 1.0.1 I'm trying to run the script below, but I see tkplot flash for a split second, then it closes. I get the same…
skellpco
  • 119
  • 6
0
votes
1 answer

R: Error in tkplot(): tcl/tk library not available

My goal is to create an interactive graph: tkid <- tkplot(my_igraph_network_object) l <- tkplot.getcoords(tkid) plot(net, layout=l) Which yields an error in the first line: "Error in tkplot(net) : tcl/tk library not available." I tried to install…
Bart Schuijt
  • 591
  • 1
  • 10
  • 14
0
votes
0 answers

interactive plotting in r: tkplot crashes

My question is regarding plotting with R using the igraph and tcltk packages. I installed everything, including XQuartz for my Mac OS X 10.10. When I try to plot it, first it starts the interactive window but then immediately crashes with error "1…
0
votes
1 answer

Issues with geographical coordinates with R tkplot

I want to spatialise graph's vertex with geographical coordinates (epsg:27572) but when I use the tkplot function tkplot.setcoords(), coordinates are 'centred', one 0 appears and the spatialisation is a kind of mirror symmetry of the true positions.…
0
votes
2 answers

colouring graph connections in R

I built in R a graph and I succeeded in colouring some vertex using if statement in colour, i used the tkplot function to have a better visualization. Now I have the following graph: FROM TO A B A D B C B F D E E G E H H M H …
Alex Fort
  • 93
  • 6
0
votes
1 answer

Two identical codes, 1 graph and 1 error

I am making 4 correlation networks representing plant traits under different treatments. Two are now perfect. Evidently the code works. The four underlying matrices have an identical structure (just different numbers). When trying to plot the two…
The Riddler
  • 51
  • 1
  • 3
0
votes
1 answer

Use tkplot in igraph when matching vertex size to label

I am trying to apply the script suggested in another post on this forum for matching vertex size to label: Match vertex size to label size in igraph. The solution for the plot function works perfectly but the same syntax cannot be used for the…
1
2