R plot.msets颜色代码 - 可以有多种颜色吗?

时间:2016-02-03 12:51:06

标签: r visualization data-visualization intersection multiset

我正在使用R来显示多组交叉点,这就是我找到SuperExactTest包的方式。

我的代码如下:

require(SuperExactTest)
data(Cancer)
Result1 = supertest(Cancer, n=20687)
plot(Result1, degree=2:3, legend.col=2, sort.by='size')

有输出:

Plot1

我尝试用不同的颜色为七个类别着色:

require(SuperExactTest)
data(Cancer)
Result1 = supertest(Cancer, n=20687)
plot(Result1, degree=2:3, legend.col=2, sort.by='size', color.on = c("red","green","yellow","blue","orange","grey","pink"))

但输出只显示列表的第一种颜色:

Plot2

在不同类别的情况下,是否可以使用不同的颜色? 谢谢您的帮助! :)

0 个答案:

没有答案
相关问题