使用RSID值在两个数据集之间绘制重叠
我想在两个数据集之间绘制重叠。
我的第一个数据集是:
dput(rsid_en_vcf [1:43,])
C(“ RS782629217”,“ RS782403204”,“ RS199529001”,“ RS147880041”,
“ RS141826009”,“ RS199826048”,“ RS200558688”,“ RS782114919”,“ RS41304577”,“
“ RS200311430”,“ RS147114528”,“ RS200635479”,“ RS41288741”,“ RS782167952”,“
“ RS6560827”,“ RS200242637”,“ RS144539776”,“ RS41305669”,“ RS41288743”,“
“ RS41288743”,“ RS369736529”,“ RS148025238”,“ RS41298226”,“ RS782272071”,“
“ RS9329304”,“ RS9329305”,“ RS137895574”,“ RS142619172”,“ RS144154384”,“
“ RS782777737”,“ RS782796368”,“ RS782443786”,“ RS782246853”,“ RS150779790”,“
“ RS782304204”,“ RS9329306”,“ RS144740103”,“ RS4431953”,“ RS189892388; RS75953774”
“ RS61839057”,“ RS61839058”,“ RS145405488”,“ RS782307404”)
我的第二个数据集是:
dput(en_brain_cortex7 [1:10,]) 结构(列表(rsid1 = c(“ RS2085346”,“ RS12765102”,“ RS11250286”, “ RS1876899”,“ RS11250293”,“ RS4880776”,“ RS7094850”,“ RS883660”,“ “ RS4880780”,“ RS4880487”),row.names = C(Na,-10l),class = C(“ TBL_DF”, “ tbl”,“ data.frame”))) 我想为这两个数据集绘制带有重叠的Venndiagram。 这就是我所做的:
venn.diagram(
x = list(rsid_en_vcf,en_Brain_Cortex7),
category.names = c("elasticnet_model","rsid_vcf"),
filename = 'venn_diagramm.png',
output=TRUE
)
但是它给出了一个错误:
错误:
呢必须使用有效的下标向量子集。
I逻辑下标必须匹配索引输入的大小。
X输入具有157608的大小,但是subscript !重复(x,froflast = fromlast,...)
的大小为0。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
帮助页面说X参数的输入应为向量列表。您的
X
是向量和data.frame。成功:
图像文件是PNG类型,但为36 MB,因此拒绝上传。
将分辨率更改为72和ht,然后将宽度更改为700,我得到:
The help page says the input to the x argument should be a list of vectors. Your
x
was a vector and a data.frame.This succeeds:
The image file was of type png but was 36 MB and SO refuses to upload it.
Changing the resolution to 72 and ht and width to 700 I get: