showSVG: Show Venn diagram. Automatically called from plotVenn.

Description Usage Arguments Value

View source: R/hello.R

Description

Show Venn diagram. Automatically called from plotVenn.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
showSVG(
  nVennObj,
  opacity = 0.4,
  borderWidth = 1,
  showLegend = T,
  outFile = "",
  systemShow = FALSE,
  labelRegions = T,
  showNumbers = T,
  setColors = NULL,
  fontScale = 1
)

Arguments

nVennObj

Object with nVennR information. Can be obtained from a plotVenn call.

opacity

Fill opacity for the sets. Defaults to 0.4.

borderWidth

Width of set borders. Defaults to 1.

showLegend

Boolean stating whether the resulting figure should contain a legend. Defaults to true.

outFile

File name to save SVG figure. If empty, a temp file will be created and sent to the graphic device.

systemShow

Show the result in the system SVG viewer (i. e., Inkscape).

labelRegions

Show region identifiers. These are numbers in parentheses inside each region indicating which sets that region belongs to. Defaults to true

showNumbers

Show how many elements belong to each region (large numbers in the figure). Defaults to true

setColors

Vector with the color of each set in order. Color names must be CSS-compatible.

fontScale

Multiplier for font sizes. The font size of both numbers and region labels will be multiplied by this factor. Values larger than 2 will probably make labels clash.

Value

Processed nVenn object. Creates a Venn diagram in svg as a side effect.


nVennR documentation built on Jan. 25, 2021, 1:05 a.m.