简体   繁体   English

无法在欧拉中更改颜色

[英]Unable to change colors in eulerr

I have three lists of genes for which I am attempting to plot the euler plots using eulerr in R. I'm having trouble figuring out why the code provided here isn't allowing me to change the colors of the different sets.我有三个基因列表,我试图在 R 中使用 euler 绘制欧拉图。我无法弄清楚为什么此处提供的代码不允许我更改不同集合的颜色。

Here is a sample code:这是一个示例代码:

d <- list(a = c(1:10),
          b = c(2:31),
          c = c(8:14))
d <- lapply(d, as.character)

fit <- plot(euler(d),quantities = TRUE)
plot(fit,
     fills = c("pink", "darkgoldenrod1", "black"),
     edges = FALSE,
     fontsize = 8,
     quantities = list(fontsize = 8))

Here is the output image:这是输出图像:

在此处输入图片说明

Colors displayed are the default ones rather than the ones specified by me.显示的颜色是默认颜色,而不是我指定的颜色。

sessionInfo() R version 3.6.1 (2019-07-05) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 18362) sessionInfo() R 版本 3.6.1 (2019-07-05) 平台:x86_64-w64-mingw32/x64(64 位)运行于:Windows 10 x64(构建 18362)

Have you tried something like this:你有没有尝试过这样的事情:

library(eulerr)
d <- list(a = c(1:10),
          b = c(2:31),
          c = c(8:14))
d <- lapply(d, as.character)

fit <- plot(euler(d),
            fills = c("pink", "darkgoldenrod1", "black"),
            quantities = TRUE)
fit

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM