# Questions tagged [diagrammer]

DiagrammeR is a R package for creating diagrams.

185 questions
Filter by
Sorted by
Tagged with
0votes
0answers
14views

### Using Diagrammr package to make a flow DiagrammeR

I am trying to make a flow to show my experimental design. I have something that works, but I would like to add another layer at the bottom-which adds a question box to each group, which should be big ...
• 309
2votes
0answers
36views

### How to increase the arrow lengths between nodes for DiagrammeR?

supposed I have a diagram like this. library("DiagrammeR") niv <- c("A","B","C","D","E","X","Y") from <- c("...
• 3,955
0votes
1answer
54views

### rmarkdown diagrammeR blank output to PDF

I would like to include a diagram from diagrammeR in R markdown and render it to PDF. I installed webshot and phantomJS as discussed in this post but the output is a blank image. install.packages('...
• 47
0votes
0answers
22views

### Sort multiple nodes into rows in DiagrammeR in R

I am building a large map where a number of observed variables map onto latent variables. When using DiagrammeR to generate the map, all the observed items (indicated by squares) appear in a single ...
• 543
0votes
1answer
37views

### DiagrammeR - Adding a horizontal node & increase font size

I employed the code below to create a flowchart. I had two questions that I'd appreciate advice on how do I add an horizontal node, e.g. to tab2, how do I increase font size within each node? ...
• 43
0votes
0answers
149views

### No Latex installation detected

Goal: To create a pdf with R markdown that includes a DiagrammeR flowchart. My steps: I ran the code below to render a flowchart created through DiagrammeR. Reviewed and tried documentation and code ...
• 1
0votes
0answers
43views

### Enable DiagrammeR plot output to zoom in when hitting double click on it

I have the shiny app below in which I try to add double-click-to-zoom-in the plot. I think the secret is adapting the js part but I'm not sure about it. devtools::install_github("stevepowell99/...
• 5,770
1vote
0answers
36views

### Choose best network visualizer for R [closed]

I need to visualize network structure with several requirements: labels inside node shapes with auto width, clusters support, export to SVG, bi-directional links (1-way and 2-way arrows). I'm now ...
• 171
0votes
2answers
63views

### Fit labels in nodes in DiagrammeR

I need to plot directed network with 2-way edges and labels on nodes. Node names lengths are sometimes short, sometimes long. Data is dynamically generated so it's a kind of random every time. Here is ...
• 171
0votes
0answers
38views

### length of a edge / distance between nodes - DiagrammeR in R

I have a a script with chart like below. Question is how to increase the distance between nodes / length of edges in those fuctions. I tried multiple ways but I cannot figure this out. library(...
3votes
2answers
102views

### DiagrammeR and MathJax do not correctly render a graph in a rmarkdown document

I am using the following rmarkdown example, which does not show the symbol theta nor the caption of the figure, and the first node is too wide (see below the output): --- title: "Untitled" ...
• 7,024
0votes
1answer
58views

### DiagrammeR: Force horizontal arrows to be straight rather than diagonal

I am attempting to recreate this example as a test for a flow diagram for a project I am working on: https://dannyjnwong.github.io/STROBE-CONSORT-Diagrams-in-R/ That page shows the code should result ...
• 13
0votes
0answers
28views

### how to select nodes from a gv file with DiagrammR in R

I have a test.gv file with nodes and edges like digraph a_nice_graph { # node definitions with substituted label text node [fontname = Helvetica] a [label = '@@1'parti = acteur] b [label = '...
• 1,327
1vote
1answer
67views

### diagrammeR - adaptation from "how can I add arms to my flowchart?"

I found the following example of diagrammeR here (diagrammer - how can I add arms to my flowchart?): library(DiagrammeR) grViz("digraph flowchart { # node definitions with substituted label ...
0votes
1answer
73views

### How to refer to multiple DiagrammeR GraphViz graphs in a shinydashboard

I have a shiny dashboard with multiple tabs that are logically linked, so I've created a DiagrammeR diagram using GraphViz to show how they relate. I want to be able to trigger a change to a new tab ...
• 50
0votes
1answer
42views

### DiagrammeR grViz labelfontsize and labelfontcolor do nothing

I want to change the color and size of the text above the edges of a graph. According to the docs, labelfontsize and labelfontcolor should do it for taillabel and headlabel (and indeed they do). How ...
• 3,599
0votes
2answers
45views

### Wrapping grVizOutput in renderUi/uiOutput in shiny app

In order to be able to resize a graph output from generated with DiagrammeR package (has explained here : https://github.com/rich-iannone/DiagrammeR/issues/93), I need to encapsulate grVizOutput ...
0votes
1answer
85views

### Graphs with mixed splines OR merge layers with different splines

I want to create a graph with both splines=line and splines=splines, similar to the image below. However, to achieve this, I had to create two separate graphs via the R package DiagrammeR and combine ...
1vote
0answers
50views

### Converting grViz objects to DiagrammeR objects

The function DiagrammeR::grViz() produces an object of class "grViz" and "htmlwidget". Unfortunately, most functions in DiagrammeR assume your graph is a drg_graph object and so ...
• 1,935
2votes
0answers
104views

### DiagrammeR - Digraph flowchart - Position and direction of labels on arrows

I am making a flowchart using DiagrammeR. I managed to make the nods and label the arrows, but I'd like to be able to decide if the arrow labels will be on the right or left of the arrow. Also, I'd ...
0votes
0answers
31views

### Generating bupaR process map visualizations without R

I have the dataset, consisting of nodes, edges and all relevant information, already generated with Spark. So there's really no need for me to go back R(nor do I want to). However, I really like the ...
• 53
1vote
1answer
136views

### diagrammeR (grViz) is looking for the data from environment rather than from the values inside shiny

I have below setup for diagram, the graph can only produces the below graph if I have data value in the environment, it's not looking at the data value I specified in the server at all. What should I ...
0votes
1answer
139views

### Add flowchart or graph to Rmarkdown document that knits to word_document (docx)

I want to add a flowchart (graph) to an Rmarkdown document I am creating. The flowchart needs to include numbers that are calculated by some R code. I have installed both the DiagrammeR and nomnoml ...
• 324
0votes
1answer
42views

### R function for generating DOT output of process_map

I have this R code: dataset %>% process_map() Is there way to get the DOT notational of this output and save it as a gv file? Just for comparison, in python, Digraph.save generates a DOT file ...
• 53
0votes
0answers
132views

### How can I easily present a flow chart/diagram step-by-step using DiagrammeR in R

I'm learning the DiagrammeR-package to create diagrams and flow charts. I would like to create graphs in sequence. For example, the first one would be to just show the relationship between the first ...
• 37
2votes
1answer
216views

• 176
0votes
0answers
282views

### In DiagrammeR grViz control the size of flowchart within the diagram

I am using DiagrammeR::grViz in R Markdown to build a flowchart. However, I couldn't find out how to control the distance between the flow chart and the margins of the diagram. Here is my YAML, very ...
• 49
1vote
1answer
76views

### Error passing an argument from a function to GrViz in DiagrammeR: "Object not found"

I am trying to create a function that outputs a graphic based on an input using diagrammeR::grViz, but the grViz function can't substitute the argument from my function. Here is a basic example: ...
• 13
2votes
0answers
146views

### Decrease the distance between nodes in the last-to-date DiagrammeR version (1.0.6.1)

I would like to decrease the distance between nodes in DiagrammeR R package. I am aware that is a similar question here: How to increase distance between nodes in DiagrammeR R. However, such a ...
• 2,000
2votes
1answer
158views

### How to change node shapes and labels of a data.tree in a shiny app

First post so hopefully I've remembered to include everything and have used the right terminology! A while ago I used data.tree to create a diagram showing the relationships between animals in a herd. ...
0votes
1answer
144views

### Ordering flowchart in graphviz

The graph I'd like to produce is a something like this a left-to-right flowchart with a main process at the top, and a series of groupings of stuff below that feed in and out at various points like ...
• 2,777
1vote
1answer
376views

### Save DiagrammeR object to PNG on disc

I am using the lavaanPlot-Package to plot my Path Model created with lavaan. Works like a charm. Just to make it easier here is a reproducible example Reproducible Example library(pacman) p_unload() ...
• 1,291
0votes
1answer
76views

### Save graph with emojis in label as pdf in R

Using the top answer here: How to export images of diagrammer in R I managed to import a .dot file into R and and then export a visual plot of the graph containing names and arrows as a pdf using the ...
• 1,678
3votes
0answers
226views

### DiagrammeR flowchart: align vertical nodes

I am using DiagrammeR R package to draw a flowchart, and below is the code used to generate the mock example: library(DiagrammeR) grViz("digraph flowchart { # node type 1: starting and ending ...
• 9,846
1vote
1answer
112views

### Print DiagrammeR object inside for-loop

Is there a straightforward way to print DiagrammeR objects from within a loop in an R Markdown document? I have a document in which a regression table, a plot and a diagram are each generated for ...
• 1,401
2votes
2answers
421views

### Adjust edge label position in mediation diagram with DiagrammeR?

I am trying to draw a standard triangular mediation diagram using DiagrammeR in R (it can also interpret graphviz code). On the whole, it's working fine but the edge label text gets placed oddly. The ...
• 1,401
1vote
1answer
80views

### Three column graphviz

How do I reproduce the figure: Using graphviz nodes? I have tested several combinations of rankings, without success. Here is a working example, which is still pretty far from the objective: ...
• 1,784
0votes
1answer
349views

### BupaR DiagrammeR Group & Export Graph

I'm creating several process maps based on the BupaR package in R, and I've like to export a PDF of all graphs, but it won't allow me to export the GraphViz object if it's grouped. These two example ...
2votes
0answers
120views

### Line Breaks in Aligned Text When Using HTML Tables in DiagrammeR Nodes

I am looking for help in aligning text within HTML tables inside of DiagrammeR nodes. In this working example: library(DiagrammeR) grViz( "digraph consort_diagram { graph[splines = ortho]...
• 24.8k
0votes
1answer
108views

### What is the best way to model hierarchical data in SQL?

I have relationship data in the form: Parent ID ParentName ParentType RelatedToID RelatedToName RelatedType ---------------------------------------------------------------------------- 1 ...
• 165
0votes
1answer
134views

### How do you add grViz from DiagrammeR in PowerBi R Visual?

I am trying to get the output from R grviz on a powerPI R-Visual. My code to generate a simple tree: library(DiagrammeR) vector <- c('A->1','A->2') df = data.frame(vector) grViz(paste0("...
• 165

15 30 50 per page