Questions tagged [r-graphviz]

Rgraphviz is a software package that interfaces R with the AT&T graphviz library for plotting R graph objects from the graph package.

Rgraphviz is a software package that interfaces R with the AT&T graphviz library for plotting R graph objects from the graph package.

References

Related Tags

14 questions
37
votes
0 answers

Use the `pos` argument in Rgraphviz to fix node position

Based on this question Automatically curving an arc when it is overlapping with another one, I am trying to set the pos attribute in a RGraphviz plot. Can someone show how to correctly use the pos attribute or suggest a more robust workaround.…
user20650
  • 24,654
  • 5
  • 56
  • 91
5
votes
1 answer

bnlearn + Rgraphviz: double arrows instead of undirected edges when customizing plots

I am trying to customize a plot of a graph learned with bnlearn using RGraphviz. When I have undirected edges, RGraphviz turns them into directed edges to both directions when I try to customize the appearance of the graph. A reproducible example…
jcp
  • 749
  • 6
  • 21
2
votes
1 answer

How do I graph a Bayesian Network with instantiated nodes using bnlearn and graphviz?

I am trying to graph a Bayesian Network (BN) with instantiated nodes using the libraries bnlearn and Rgraphviz. My workflow is as follow: After creating a data frame with random data (the data I am actually using is obviously not random) I then…
2
votes
1 answer

Error with R version 4.0.2 but not in R version 3.6.3 with DiagrammR: ! LaTeX Error: Environment grViz undefined

I have successfully used grViz in DiagrammR with an R markdown (bookdown) file on R version 3.6.3 that causes an error on another computer with R version 4.0.2. I have "tried everything" that I could think of including re-installing TinyTex and…
jys
  • 121
  • 7
2
votes
0 answers

Setting subgraph/cluster attributes in Rgraphviz

I want to plot a graph via Rgraphviz but I can't handle the design attributes of the clusters that I set. There are similar questions already on SO and elsewhere but none has a real minimal working example and none of them is answered. So I want to…
locom
  • 115
  • 9
1
vote
1 answer

Creating a network graph with set node positions and concentrated edges with both circleheads and arrowheads in R

I've been trying to find a way to replicate the following network graph format in R using DiagrammeR/GraphViz, but without success (ignore the thick black arrow on N1): https://i.stack.imgur.com/oHpQz.png The graph is a directed graph and each edge…
mccoy
  • 13
  • 3
1
vote
0 answers

Creating flowchart with DiagrammeR nodes and edges instead of graphviz

I would like to create a flowchart using the DiagrammeR nodes and edges functionality with R instead of using the graphviz wrapper function. However, I can't figure out how to make the edges straight to make it nice. This is the graphviz solution…
1
vote
0 answers

Wrong nodesize in Rgraphviz dot layout

I have the following graph object saved as a file ("Test.txt") and I would like to visualize this graph with Rgraphviz: # importing data yo <- agread("Test.txt", layoutType="neato", layout=TRUE) plot(yo) The neato layout works fine and gives…
Ju Ko
  • 466
  • 7
  • 22
1
vote
1 answer

What is the code to install BiocManager package?

I needed to install Rgraphgviz package, for which i found this code if (!requireNamespace("BiocManager", quietly = TRUE)) install.packages("BiocManager") BiocManager::install("Rgraphviz", version = "3.8") It seems I need to install…
0
votes
1 answer

R diagrammeR graph

I am using diagrammer for a diagram that should look like the one below but without any success. I have tried the following code library(DiagrammeR) grViz(" digraph boxes_and_circles { graph [layout = circo, overlap =T, outputorder =…
DSTO
  • 265
  • 1
  • 9
0
votes
1 answer

graphViz: How to use fixed positions for nodes from "neato" layout but have pretty curved edges from "dot" layout?

I have this dot code which I use in R's diagrammeR-package: grViz("digraph { graph [layout = neato, overlap = false, outputorder = edgesfirst] node [shape = rectangle] # Error Certainty crt1e[pos = '11.1, 15!', label =…
mkks
  • 23
  • 4
0
votes
1 answer

Bioconductor package installation : missing repository

I am trying to publish a shiny app, but getting the following error. My code is working fine in Rstudio though. Only get this error when I try to publish it. install.packages("BiocManager") BiocManager::install("Rgraphviz") Error:…
Dihan
  • 311
  • 1
  • 7
0
votes
0 answers

Graphviz is drawing DAGs with missig arrows and circle frames of the nodes

I'm experimenting with bnlearn R library and its DAGs. I'm new to R as well. I tried the code example here > tree = model2network("[A][B|A][C|A][D|A][E|B][F|B][G|C][H|C][I|C]") > graphviz.plot(tree, layout = "dot") but then I got this…
CiCi
  • 47
  • 1
  • 5
0
votes
1 answer

RGraphviz Hasse Diagram displaying only one lable

In order to create an Hasse Diagram like the following One is using the following libraries library(rPref) library(Rgraphviz) One is taking a small sample of one's data df <- data[1:10,] Then creating the preferences pref <- low(time) *…
Gonçalo Peres
  • 11,752
  • 3
  • 54
  • 83