使用 eulerr R 自定义欧拉图颜色

Customizing Euler Diagram colors with eulerr R

我正在尝试使用 R 中 Johan Larsson 的 eulerr 包绘制欧拉图。我正在关注 this example,其中开发人员解释了如何自定义 colors/border 透明度。但是,当我尝试使用以下代码实现它时:

fit2 <- euler(c(A = 16971, B = 218, C = 215, 
                "A&B" = 112, "A&C" = 112, "B&C"= 51,"A&B&C" = 23))
plot(fit2,
 polygon_args = list(col = c("dodgerblue4", "darkgoldenrod1", "cornsilk4"),
                     border = "transparent"),
 text_args = list(font = 8), counts=TRUE)

Colors/border保持不变

我在 Windows.

上使用 RStudio 1.0.136、R 3.3.1

对此感到抱歉。 post 已过时,论据已更改。

试试这个

fit2 <- euler(c(A = 16971, B = 218, C = 215, 
                "A&B" = 112, "A&C" = 112, "B&C"= 51,"A&B&C" = 23))
plot(fit2,
     fills = c("dodgerblue4", "darkgoldenrod1", "cornsilk4"),
     edges = FALSE,
     fontsize = 8,
     quantities = list(fontsize = 8))