Question: Question on node attribute fontsize in Rgraphviz
0
gravatar for Claudio Lottaz
11.2 years ago by
Claudio Lottaz40 wrote:
Dear Rgraphviz-experts, I am trying to adjust the fontsize of graph nodes in a plot produced by the Rgraphviz package. However, any fontsize related changes I make don't have an effect when I plot the graph. For example code 1 below generates a random graph with 4 nodes. In order to make the fontsize of the graph nodes smaller than normal, I tried to adjust the attrs variable as shown in code 2, but after plotting the graph I still notice no change in terms of fontsize. All other node attributes work except for fontsize. I don't know if this is expected in general or I made a mistake. Many thanks for any help! Cheers, Claudio code1: library("Rgraphviz") set.seed(123) V <- LETTERS[1:4] M <- 1:4 g1 <- randomGraph(V, M, 0.2) plot(g1) code2: globA=list(node=list(fontsize="6"),edge=list(minlen="3")) plot(g1,attrs=globA)
graph rgraphviz • 586 views
ADD COMMENTlink written 11.2 years ago by Claudio Lottaz40
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 234 users visited in the last hour