维恩图颜色选项

时间:2018-02-07 06:48:02

标签: r colors venn-diagram

为什么我会变成橙色?我在哪里可以获得所有颜色选项?

这是我使用的脚本:

> library(VennDiagram)
>draw.pairwise.venn(28, 49, 18, category = c("_d", "_de"), lty = rep("blank", 2), fill = c("blue", "red"), cex=0, alpha = rep(0.5, 2), cat.pos = c(25,-25), cat.dist = rep(0.05, 2), scaled = TRUE, inverted = TRUE, rotation.degree = 0)

这是输出图像:

enter image des an ription here

1 个答案:

答案 0 :(得分:1)

颜色显示为橙色,因为颜色有alpha(不透明度)设置。您可以尝试将其设置为1,但我认为这也不是您想要的。

draw.pairwise.venn(28, 49, 18,
                   category = c("_d", "_de"),
                   lty = rep("blank", 2),
                   fill = c("blue", "red"),
                   cex = 0, 
                   alpha = c(0.5, 1),
                   cat.pos = c(25,-25), 
                   cat.dist = rep(0.05, 2), 
                   scaled = TRUE, 
                   inverted = TRUE, 
                   rotation.degree = 0)

enter image description here

我不知道“所有颜色选项”是什么意思。也许您应该查看文档? ?draw.pairwise.venn()