wvenn: wvenn

Description Usage Arguments Examples

View source: R/MarkdownReportsDev.R

Description

Save venn diagrams. Unlike other ~vplot funcitons, this saves directly into a .png, and it does not use the dev.copy2pdf() function.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
wvenn(
  yourlist,
  imagetype = "png",
  alpha = 0.5,
  fill = 1:length(yourlist),
  subt,
  ...,
  w = unless.specified("b.defSize", 7),
  h = w,
  mdlink = ww.set.mdlink(),
  plotname = substitute(yourlist),
  openFolder = T
)

Arguments

yourlist

The variable to plot.

imagetype

Image format, png by default.

alpha

Transparency, .5 by default.

fill

Background color vec

subt

Subtitle

...

Pass any other parameter of the corresponding venn.diagram() function(most of them should work).

w

Width of the saved pdf image, in inches.

h

Height of the saved pdf image, in inches.

mdlink

Insert a .pdf and a .png image link in the markdown report, set by "path_of_report".

plotname

Manual plotname parameter

openFolder

open current directory (=working if setup_MarkdownReports('setDir=T'))

Examples

1
2
TwoSets = list("set1" = LETTERS[1:6], "set2" = LETTERS[3:9] )
wvenn (yourlist = TwoSets, imagetype = "png", alpha = 0.5, w = 7, mdlink = FALSE)

vertesy/MarkdownReportsDev documentation built on Nov. 15, 2021, 9:59 a.m.