Plotting fails for `qgraph` when using a vertical layout
See original GitHub issueDescribe 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
*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:
- Created a year ago
- Comments:5 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
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")