I am trying to display 4 venn.diagramm plots in a grid. I need to increase the space between the diagram so that my legend does not overlap with other diagrams (or outside of plots).
I tried to do this by playing with the margin
in the function venn.diagram
but between diagrams and their respective subtitles (which is not good) Lead it to increase the distance.
I have seen some questions (like) but they do not work in my case.
This is my code:
Library (Wenndagram) Library (Grid) Library (Gridbase) Library (Latis) # Data L1 and LT. - List (Deletion = 1: 1420, Insert = 967: 2042) l2 & lt; - List (Deletion = 1: 502, Entry = 324: 660) l3 & lt; - List (Deletion = 1: 142, Insert = 85: 184) L4 and LT; - List (Deletion = 1: 161, entry = 22: 217) venns & lt; - List (sub-target = l1, target = l2, gene = l3, promoter = l4) # Set up grid layout GL & lt; - grid.layout (nrow = 2, ncol = 2) #setup viewport vp.1 & lt; - Viewport (layout.pos.col = 1, layout.pos.row = 1) vp.2 and lieutenant; - Viewport (layout.pos.col = 2, keep Out.pos.row = 1) vp.3 & lt; - Viewport (layout.pos.col = 1, layout.pos.row = 2) vp.4 & lt; - Viewport (layout.pos.col = 2, layout. (I.Sp = 2) #init layout for pushviewport (viewport (layout = GL)) (i in 1: 4) {# relevant viewport Venn.diagram (venns [[i]], fill = c ("red", "green"), alpha = C (0.5, 0.5), cx = 1, cat.fontface = 2, lty = 2, filename = NULL, all = names (venns) [i], margin = 0.5, sub.poz = c (0.5, 0.78), col.ll = "Blue") #Viewage grid is done with the diagram # this viewport pop-up on the grid (temp) ()} Any idea? Perhaps the viewport's mother Penalties to increase the margin of change without any criteria?
Comments
Post a Comment