Problems of Converting Graphs to Chart Chart

I like to use igraph

to create and manage graphs, and I want to use DiagrammeR

to make nice visualization of graphs. I am having trouble converting my charts to DiagrammeR

.

> library(igraph)
> library(DiagrammeR)
> g = make_empty_graph() + vertices(c("a", "b")) + edge("a", "b")
> x = from_igraph(g)
Warning messages:
1: In data.frame(from = as.integer(igraph::ends(igraph, igraph::E(igraph))[,  :
  NAs introduced by coercion
2: In data.frame(from = as.integer(igraph::ends(igraph, igraph::E(igraph))[,  :
  NAs introduced by coercion
> x
$graph_info
  graph_id     graph_name          graph_time graph_tz write_backups
1 6Z3ljgDB graph_6Z3ljgDB 2017-03-23 15:14:01     <NA>         FALSE

$nodes_df
  id type label
1  1 <NA>  <NA>
2  2 <NA>  <NA>
...

      

This is for drake which is highly dependent igraph

and I don't want to convert the internals to DiagrammeR

.

+3
r igraph diagrammer


source to share


No one has answered this question yet

Check out similar questions:

674
How can we create xkcd style graphs?
485
Plot two graphs in one graph in R
13
Plot a subset of plots by label
6
Collapsing graph by clusters in igraph
1
Graph edge color in graphics
1
How to create a network diagram using DiagrammeR?
1
R chart horizontal graph
1
Networking games with a diagram
0
DiagrammeR: design a graph from a data block
0
Convert data.frame from character to numeric value in R for use in Time Series function



All Articles
Loading...
X
Show
Funny
Dev
Pics