Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plotting fails for qgraph when using a vertical layout #1227

Closed
mihaiconstantin opened this issue Oct 21, 2022 · 5 comments
Closed

Plotting fails for qgraph when using a vertical layout #1227

mihaiconstantin opened this issue Oct 21, 2022 · 5 comments
Labels

Comments

@mihaiconstantin
Copy link

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

plotting-issue-r-vscode.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

@renkun-ken
Copy link
Member

Looks like it is a httpgd issue. @nx10 What do you think?

@nx10
Copy link
Contributor

nx10 commented 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")

@mihaiconstantin
Copy link
Author

@nx10, I was using version 1.3.0, i.e., the one on CRAN. I just tried with nx10/httpgd@f44dae0 and it works.

I'll make a note to remind myself to update packages next time... 😅

@nx10
Copy link
Contributor

nx10 commented 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 (CrowCpp/Crow#546) nothing major, but until this is fixed CRAN will likely not accept it.

@mihaiconstantin
Copy link
Author

I wasn't aware that CRAN also takes memory leaks into account. The CrowCpp/Crow project looks very interesting—I'm happy you mentioned it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants