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.
r-graphviz
14
questions
44
votes
0
answers
982
views
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 ...
5
votes
1
answer
2k
views
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 ...
2
votes
1
answer
725
views
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 ...
2
votes
1
answer
1k
views
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" ...
2
votes
0
answers
256
views
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 ...
1
vote
1
answer
450
views
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....
1
vote
0
answers
259
views
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 ...
1
vote
0
answers
100
views
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=...
1
vote
1
answer
884
views
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", ...
0
votes
1
answer
295
views
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 [...
0
votes
1
answer
445
views
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]
# ...
0
votes
1
answer
153
views
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&...
0
votes
1
answer
77
views
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 ...
0
votes
0
answers
63
views
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]")
> ...