简体   繁体   English

具有不同大小节点的 R qgraph 网络图?

[英]R qgraph network graph with varying size of nodes?

我目前正在 R 中绘制 qgraph(弹簧),但我想知道是否可以改变图中节点的大小?

the vsize argument should do the trick vsize参数应该可以解决问题

qgraph(data, vsize = 2)

from ?qgraph:来自?qgraph:

vsize大小
A value indicating the size of the nodes (horizontal if shape is "rectangle". Can also be a vector of length 2 (nodes are scaled to degree) or a size for each node. Defaults to 8*exp(-nNodes/80)+1指示节点大小的值(如果形状为“矩形”则为水平。也可以是长度为 2 的向量(节点按度数缩放)或每个节点的大小。默认为 8*exp(-nNodes/80) +1

vsize2大小2
A value indicating the vertical size of the nodes where the shape is "rectangle".一个值,指示形状为“矩形”的节点的垂直大小。 Can also be a vector of length 2 (nodes are scaled to degree) or a size for each node.也可以是长度为 2 的向量(节点按度数缩放)或每个节点的大小。 Defaults to the value of 'vsize'.默认为“vsize”的值。 If 'vsize' is not assigned this value is used as a scalar to 'vsize' (eg, vsize2 = 1/2 would result in rectangled nodes where the height is half the default width)如果未分配“vsize”,则此值用作“vsize”的标量(例如,vsize2 = 1/2 将导致矩形节点的高度为默认宽度的一半)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM