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

R plot.msets颜色代码-是否可以有多种颜色?,r,visualization,data-visualization,intersection,multiset,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') 有一个输出: 我尝试用不同的颜色为七个类别上色,如下所示: require(SuperExactTest) data(Cancer) Res

我使用R来可视化多集合交叉点,这就是我如何找到SuperExactTest包的

我的代码如下:

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

我尝试用不同的颜色为七个类别上色,如下所示:

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"))
但输出仅显示列表的第一种颜色:

对于不同的类别,是否可以使用不同的颜色? 谢谢你的帮助!:)