Questions tagged [diagrammer]

DiagrammeR is a R package for creating diagrams.

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 ...
user avatar
  • 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("...
user avatar
  • 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('...
user avatar
  • 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 ...
user avatar
  • 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? ...
user avatar
  • 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 ...
user avatar
  • 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/...
user avatar
  • 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 ...
user avatar
  • 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 ...
user avatar
  • 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(...
user avatar
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" ...
user avatar
  • 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 ...
user avatar
  • 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 = '...
user avatar
  • 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 ...
user avatar
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 ...
user avatar
  • 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 ...
user avatar
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 ...
user avatar
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 ...
user avatar
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 ...
user avatar
  • 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 ...
user avatar
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 ...
user avatar
  • 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 ...
user avatar
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 ...
user avatar
  • 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 ...
user avatar
  • 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 ...
user avatar
  • 37
2votes
1answer
216views

Mermaid Flowchart does not render 'longer arrows'

--- title: "Markdown Demo" author: "J" date: "6/14/2021" output: html_document --- ## Setup ```{r setup, include=FALSE} knitr::opts_chunk$set(echo = TRUE) library(...
user avatar
0votes
1answer
202views

How to add 3 dots in a graphviz network diagram?

I have a simple graphviz network graph where I want to show the neural network architecture of my model: DiagrammeR::grViz("digraph G { rankdir = LR {a b z} -> {x1, x2, x100} -> Y ...
user avatar
  • 2,245
0votes
1answer
71views

Error in creating graph from DiagrammeR package

I am trying to create a node-link diagram in R using the DiagrammeR package from the below code: library(DiagrammeR) nodes <- create_nodes(nodes = 1:7, type = "number") edges <- ...
user avatar
  • 479
0votes
1answer
173views

How do you resize grViz object in the DiagrammeR package

Am struggling to resize the grViz object in the DiagrammeR package. I would want for instance the object of to be of size 18cm wide and a height of 14cm. When I try the height and width properties in ...
user avatar
  • 941
1vote
1answer
218views

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....
user avatar
  • 13
0votes
0answers
54views

Can I set nodes a color based on a column from a table?

Hello I am trying to get my nodes to be colored based on a column in a table (if possible). The program I am creating will have set columns but different amount of rows based on the CVS file. I would ...
user avatar
0votes
0answers
72views

Is there a way to change the size of nodes that were created from a table?

so this is my code pretty simple flowchart. I was wondering how I could size the nodes so they're on a fixedsize (fixedsize = FALSE does not work) so they change size based on the text inside the ...
user avatar
2votes
1answer
157views

Mermaid DiagrammeR journey

How can I solve this problem. I added the following line of code in my *.rmd file: DiagrammeR::mermaid(" journey title My working day section Go to work Make tea: 5: Me Go ...
user avatar
1vote
1answer
395views

DiagrammeR paragraphs inside nodes

I would like to know how to wrap a bunch of text inside a node within a specified width. know I can have a diagram in the form A-->B-->C, but A, B and C for me are almost always paragraphs of 2 -...
user avatar
0votes
0answers
60views

How can I pass reactive value into DiagrammeR::grViz()?

I am trying to pass two reactive values into my Diagrammer::grViz code like [1]: paste0("Count is : \n", df()$count[rownum()]) where df() is my dataframe and rownum() is a specific selected ...
user avatar
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 ...
user avatar
  • 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: ...
user avatar
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 ...
user avatar
  • 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. ...
user avatar
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 ...
user avatar
  • 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() ...
user avatar
  • 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 ...
user avatar
  • 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 ...
user avatar
  • 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 ...
user avatar
  • 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 ...
user avatar
  • 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: ...
user avatar
  • 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 ...
user avatar
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]...
user avatar
  • 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 ...
user avatar
  • 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("...
user avatar
  • 165

15 30 50 per page