Comments (2)
This is hard to do in a single qgraph
call because the suplot fills the entire node, but you can just make one plot for the pie charts and plot the subplots on top with an empty network and smaller node sizes:
# Weights matrix:
mat <- matrix(rnorm(5^2),5,5)
# Suplots:
sp <- list(
expression(plot(rnorm(100),rnorm(100),xlab="",ylab="",axes=FALSE)),
expression(plot(rnorm(100),rnorm(100),xlab="",ylab="",axes=FALSE)),
expression(plot(rnorm(100),rnorm(100),xlab="",ylab="",axes=FALSE)),
expression(plot(rnorm(100),rnorm(100),xlab="",ylab="",axes=FALSE)),
expression(plot(rnorm(100),rnorm(100),xlab="",ylab="",axes=FALSE))
)
# Plot the network with pie charts:
Q <- qgraph(mat,
pie=runif(5),
vsize = 10,
shape = "square",
labels=FALSE
)
# Plot the subplots:
qgraph(matrix(0,5,5),
vsize = 9,
shape = "square",
labels=FALSE,
plot=FALSE,
layout = Q$layout,
subplots = sp
)
from qgraph.
from qgraph.
Related Issues (20)
- R 4.2.2 Crashes when using qgraph on Windows 10x64 HOT 1
- Legend disappears when setting edge.labels=TRUE HOT 2
- centralityPlot documentation says standardized by default, but actually raw0 HOT 1
- Help! EBICglasso return an empty network HOT 4
- Legend for correlation magnitude HOT 1
- "NA/NaN Hessian evaluation" error when calling cor_auto HOT 1
- pie in qgraph.loadings does not display when there are more than 4 latent factors HOT 2
- Incorperate bridge centrality in centralityPlot
- font support for CJK
- Can qgraph use more palette like jama style, etc.? HOT 4
- Error in flow HOT 2
- The colors of legend by groups was not worked HOT 3
- Conflict with `psych::score.multiple.choice()` HOT 2
- qgraph introduces a conflict with psych describe HOT 5
- Error in if (sign(tans) != sign(curve[i])) { : argument is of length zero HOT 1
- cor_auto fails with missing="fiml" but does not tell the user HOT 2
- Arrows not drawn when arrowheads are larger than the distance between two nodes
- No way to concisely depict networks with bidirectional arrows where each direction differs in strength HOT 1
- as.igraph gives error when trying to convert some valid qgraph objects
- Forcing nodes positions HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qgraph.