Я пытаюсь использовать пакет VennDiagram_1.6.20
.
И вот фрагмент кода, который я использую:
library(VennDiagram)
A <- c("AT1G01050", "AT1G01100","AT1G01370","AT1G01510","AT1G01630","AT1G01650","AT1G01820",
"AT1G01920","AT1G01940","AT1G01960","AT1G02090", "AT1G02100","AT1G02120","AT1G02130",
"AT1G02140","AT1G02280","AT1G02410","AT1G02500","AT1G02560","AT1G02690","AT1G02740","AT1G02780",
"AT1G02840","AT1G03330","AT1G03360","AT1G03860","AT1G03900","AT1G03910","AT1G04080","AT1G04170",
"AT1G04190","AT1G04250","AT1G04270", "AT1G04410","AT1G04430","AT1G04480","AT1G04510","AT1G04630",
"AT1G04690","AT1G04710","AT1G04750","AT1G04810","AT1G04820","AT1G04860", "AT1G04870","AT1G04900",
"AT1G04945","AT1G04980","AT1G05055","AT1G05180")
B <- c("AT1G01050","AT1G01100","AT1G01120","AT1G01370","AT1G01510","AT1G01630","AT1G01650","AT1G01820","AT1G01940","AT1G01960","AT1G02090","AT1G02100","AT1G02140","AT1G02280","AT1G02500","AT1G02560","AT1G02690","AT1G02740","AT1G02780","AT1G02840","AT1G03150","AT1G03330", "AT1G03360","AT1G03860","AT1G03870","AT1G03900","AT1G03910","AT1G04080","AT1G04170","AT1G04190","AT1G04250","AT1G04270","AT1G04410", "AT1G04430","AT1G04480","AT1G04510","AT1G04630","AT1G04690","AT1G04730","AT1G04750","AT1G04810","AT1G04860","AT1G04870","AT1G04900","AT1G04945","AT1G04980","AT1G05055","AT1G05180","AT1G05190","AT1G05210")
ect3_roots_vd <- venn.diagram(
x = list(A, B),
filename = "ect3_roots_vd.svg",
height = 10,
width = 10,
resolution = 300,
imagetype = "svg",
units = "in",
category.names = c("roots_ect3" , "roots_te234"),
print.mode = c("raw", "percent"),
main="triple vs single mutant roots - ect3",
main.cex = 2,
fill = c('#a50026', '#fdae61')
)
Теперь, когда я открываю файл в Illustrator,вот что я получаю:
Но если я выберу файл в Finder и покажу предварительный просмотр, «щелкнув» по нему пробелом, я получу правильное изображение, которое выглядиткак это:
Кто-нибудь еще пытался сохранить диаграмму Венна в SVG и имел ту же проблему?
РЕДАКТИРОВАТЬ: Я такжепопытался использовать
ggsave(file="test.svg", plot=ect3_roots_vd, width=10, height=10)
Ant, он возвращает тот же результат, что и выше: я могу увидеть график, если я "щелкну по нему" с помощью пробела, но на этот раз, когда я открываю его, Ai выдает ошибку и недаже открыть файл.
My R sessionInfo:
R версия 3.5.2 (2018-12-20)
Платформа: x86_64-apple-darwin15.6.0 (64-разрядная версия)
Под управлением: macOS Mojave 10.14.3