[英]How can I change the background color of venn diagram using draw.pairwise.venn in R?
draw.pairwise.venn 返回一個圖像 object,因此不能用 CSS 包裝它。 有什么辦法可以改變維恩圖的背景顏色。
library(VennDiagram)
renderPlot(draw.pairwise.venn(32+134,24+134,134,category = c("A","B"),
ext.text = TRUE,lty = "blank",fill = c("yellow","green"),scaled = FALSE,
ext.pos = 0,cat.pos = 0, cat.dist = 0.06))
我正在嘗試將我的 plot 與我的 shiny 儀表板的顏色相匹配。
As suggested by @krfurlong ggvenn
package can be used to plot Venn diagrams, and customize your plot according to requirements with the help of ggplot2
.
您可以通過以下方式安裝 ggvenn:
if (!require(devtools)) install.packages("devtools")
devtools::install_github("yanlinlin82/ggvenn")
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.