r - 手动排序交叉点 UpSetR
问题描述
我正在尝试手动订购我的交叉点,UpSetR
但我不知道是否可以这样做。order.by
只允许freq
ordegree
并且我看不到任何其他可以产生我想要的参数。
a <- list(one = c(1, 2, 3, 5,11,19),
two = c(1, 2, 4, 5, 11, 13),
three = c(1, 5, 6, 7, 11, 19),
four = c(1, 5, 6, 8, 13, 19))
upset(fromList(a), sets = c("one", "two", "three", "four"))
有谁知道这是否可能?谢谢。
解决方案
我刚刚找到了ComplexUpset
package 的解决方案:
if(!require(devtools)) install.packages("devtools")
devtools::install_github("krassowski/complex-upset")
upset(a,colnames(a),intersections=list(c("one"),c("one","two"),c("one","two","three","four"),c("one","three","four"),c("one","two","three"),c("three"),c("two"),c("four"),c("three","four"),c("two","four")),sort_intersections=FALSE)
推荐阅读
- flutter - 安装在设备/模拟器上的发布 apk 时 Flutter 崩溃
- angular - 我正在尝试在产品列表中应用 ng-animate 动画/过渡,但我陷入了困境,任何帮助都会得到帮助
- android - RecyclerView - 创建项目分隔线时移动布局
- java - 如何将 GMT +09:00 转换为当地时间?
- java - 如何将多个文件作为列表发送到 MVC 服务器?
- android - 如何使用 Firebase 云函数在内部生成随机 ID?
- python - 在 python 中使用子进程调用 bash 时缺少别名设置
- scala - 从 sbt 运行 spark-shell
- c# - 检查整数是否为 0 并返回布尔值的简短方法
- java - 当我将图像从 Url 设置为 recycleView 时,它变慢了,我该如何解决?