Entering edit mode
4 months ago
G.S
▴
60
Hello
I plotted this venn diagram using ggplot2. but I would like to change its orientation to be horizontal.
At the moment, The label is not clear. I have tried to use hjust but it did not help to adjust the label. Any suggestion would be helpful. Thanks
venn_by_gene = function(d, gene, title="Venn diagram"){
require(ggVennDiagram)
d = d %>% filter(id==gene)
km_list = list(HRSV_RBV = d$kmer_rbv,
HRSV = d$kmer_rsv)
v = ggVennDiagram(km_list) +
scale_fill_gradient2(low="gray",mid="yellow",high = "cyan") +
ggtitle(title)+
theme(plot.title = element_text(hjust = 0.5, face ="bold"),
legend.position = "none")
return(v)
}