question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Plotting fails for `qgraph` when using a vertical layout

See original GitHub issue

Describe the bug

Plotting fails for qgraph when using a vertical layout (see below). However, using layout(matrix(1:3, 1, 3)) seems to work.

To reproduce

# Load library.
library(qgraph)

# Load data.
data(big5)

# Correlations.
graph <- cor(big5[, 1:10])

# Layout.
layout(matrix(1:3, 3, 1))

# Works.
layout.show(n = 3)

# Fails in Code.
qgraph(graph, title = "Plot 1")
qgraph(graph, title = "Plot 2")
qgraph(graph, title = "Plot 3")

# Reset.
layout(1:1)

Screenshots

https://user-images.githubusercontent.com/20051042/197187138-b96ece57-fb78-4fd3-a9ee-385a2c198e68.mp4

*works

R version and OS:

platform       aarch64-apple-darwin20      
arch           aarch64                     
os             darwin20                    
system         aarch64, darwin20           
status                                     
major          4                           
minor          2.1                         
year           2022                        
month          06                          
day            23                          
svn rev        82513                       
language       R                           
version.string R version 4.2.1 (2022-06-23)
nickname       Funny-Looking Kid      

VS Code version:

Version: 1.72.2
Commit: d045a5eda657f4d7b676dedbfa7aab8207f8a075
Date: 2022-10-12T22:15:55.763Z (1 wk ago)
Electron: 19.0.17
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: 10.2.154.15-electron.0
OS: Darwin arm64 21.6.0
Sandboxed: No

vscode-R version: v2.6.0

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
nx10commented, Oct 21, 2022

No problem at all, I want to make a new CRAN release for a while, but we’re currently blocked by some issues with the new webserver library (https://github.com/CrowCpp/Crow/issues/546) nothing major, but until this is fixed CRAN will likely not accept it.

1reaction
nx10commented, Oct 21, 2022

What version of httpgd are you using? Could you please try again with the current development version directly from GitHub? remotes::install_github("nx10/httpgd")

Read more comments on GitHub >

github_iconTop Results From Across the Web

qgraph.pdf - R Project
Defines if the layout should be rescaled to fit the -1 to 1 x and y area. Defaults to. TRUE. Can best be...
Read more >
Exhausting all arguments on qgraph - Gabriel R. Rodrigues
TL;DR: I try to use all qgraph::qgraph() 's arguments and fail ... should layout be rescaled? best used with plot = F standAlone...
Read more >
iGraph vertical layout instead of horizontal - python
I am using the following code to plot a tree in python: https://plot.ly/python/tree-plots/#set-up-tree-with-igraph.
Read more >
qgraph.pdf
Defines if the layout should be rescaled to fit the -1 to 1 x and y area. Defaults to. TRUE. Can best be...
Read more >
qgraph/PLOT.R at master - GitHub
color <- x$graphAttributes$Graph$color. # Layout: layout <- x$layout. original.layout <- x$layout.orig. # Plot options: # filetype <- x$plotOptions$filetype.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found