维恩图
使用VennDiagram包
安装
> install.packages("VennDiagram")
> library(VennDiagram)
label.col
标签颜色scaled = TRUE
是否按照数据量显示园大小main="dsad"
标题sub = "Featuring:
子标题fill = c("cornflowerblue", "yellow"),
填充色cat.fontface = "bold",
分类标签字体是否加粗cat.col = c("dodgerblue"),
分类字体颜色cat.pos = c(30, 27),
分类字体所在位置cat.dist
分类标签与圆边缘的距离cat.cex
分类标签字体大小cat.just
标签对齐方式col = "transparent",
圆圈线条透明cex
可以指定圆圈内每个标签的大小label.col
指定圆圈内每个标签颜色
venn.diagram(
x = list(
"A2 vs At conserve " = as.vector(data1[, 1]),
"D5 vs Dt conserve" = as.vector(data2[, 1])
),
filename = "veenES.png",
hyper.test = TRUE,
height = 1000,
width = 1000,
scaled = TRUE,
main = "340 conserve ES events",
imagetype = "png",
main.cex = 0.75,
main.just = c(1, 1),
main.pos = c(0.35, 1),
col = "transparent",
fill = c("#f53b57", "#0fbcf9"),
alpha = 0.50,
label.col = c("#2d3436"),
cat.fontface = "bold",
cat.col = c("#f53b57", "#0fbcf9"),
cat.cex = c(0.5),
cat.pos = -1,
cat.dist = c(0.03, -0.43),
)
Last updated
Was this helpful?