r中NetGraph中点的控制大小
在R中,NetGraph()函数采用CEXS。点参数,该参数控制着图中的点的外观。是否可以通过我的.excel中的变量来扩展点的大小?
谢谢你,
我不知道论点
In R, the netgraph() function takes a cex.points argument that controls the appearance of the points in the plot. Is there a way to scale the size of points through a variable in my .excel?
Thank u all
I don't know the arguments
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
目前尚不清楚您通过“按我的excel中的变量缩放点”的意思,如果您不确定参数,您可以查看
netgraph
。假设您有这样的点大小的向量:
和这样的netmeta对象:
然后,您可以将大小应用到这样的点:
在2022-04-03创建的 reprex package (v2.0.1)< /sup>
It's not clear what you mean by "scaling the points by a variable in my Excel", and if you are unsure of the arguments, you could have a look at
?netgraph
.Suppose you had a vector of point sizes like this:
And a netmeta object like this:
Then you can apply the sizes to the points like this:
Created on 2022-04-03 by the reprex package (v2.0.1)
这是一种绘制由数据定义大小的点的方法。函数
netmeta
是S3类“netmeta”
的列表,并且有两个成员treat1
和treat2
。基本 R 函数
table
可以计算频率,但由于它们是两个向量的频率,因此这两个向量必须组合成一个 1 维向量。这是通过c()
完成的。由 reprex 包 (v2.0.1)
Here is a way to plot the points with sizes defined by the data. Function
netmeta
is a list of S3 class"netmeta"
and has two memberstreat1
andtreat2
.Base R function
table
can compute the frequencies but since they are the frequencies of two vectors, the two vectors must be combined to a 1-dim vector. This is done withc()
.Created on 2022-04-03 by the reprex package (v2.0.1)