qgraph中无效的颜色名称背景

qgraph中无效的颜色名称背景

本文介绍了qgraph中无效的颜色名称背景的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试使用qgraph生成网络图.代码如下

I have been trying to use qgraph to generate the network graph. The code is as following

Gw <- qgraph(edgeList, diag = TRUE, labels = TRUE,legend.cex = 0.3, vsize = 1,edge.color=colorLabels,legend=TRUE,asize=1)

该图可以生成,但是R命令行给出以下错误消息.我不知道invalid color name 'background'是什么意思.

The figure can be generated, but the R command line gives the following error message. I do not know what does the invalid color name 'background' mean.

dput结果如下所示,

生成的图形如下.我用以下命令生成了它

The generated figure is as follows. I used the following command to generate it

Gw <- qgraph(edgeList, layout = "spring", diag = FALSE, labels = TRUE, cut = NULL, edge.color = "red",legend.cex = 0.5, vsize = 8)

推荐答案

哪个节点有问题?使用数据和代码,您可以修改label.cex.标签和图例大小的参数还有其他变体..这是一个版本,颜色为蓝色.

Which nodes are problems? With your data and code you can modify label.cex. There are other variations of the arguments for the label and legend sizes. Here is one version, with the color blue.

library(qgraph)
Gw <- qgraph(edgeList, layout = "spring", diag = FALSE, labels = TRUE, cut = NULL, edge.color = "red", legend.cex = 0.3, vsize = 4, label.cex = 0.3, label.color = "blue")
Gw

这篇关于qgraph中无效的颜色名称背景的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 10:37