makeEuler: Create a Proportional Euler Diagram

View source: R/makeEuler.R

makeEulerR Documentation

Create a Proportional Euler Diagram

Description

Create a 2-way Proportional Euler Diagram

Usage

makeEuler(
  mytab1,
  mytab2,
  titletext = "",
  legendtext = NULL,
  plotteIntermediates = F,
  createSimplifiedLabels = F,
  object_colname = "object",
  direction_colname = "direction",
  increasingCutoff = 0
)

Arguments

mytab1

First table with objects and effect sizes to compare

mytab2

Secib table with objects and effect sizes to compare

titletext

Plot Title, Default: ”

legendtext

Plot legend, default is the names of the input tables, if set must be acharacter vector of length 2, Default: NULL

plotteIntermediates

for debug only, plot intermediate venn plots, Default: F

createSimplifiedLabels

show only Number of objects with identical direction in label of the intersect , Default: F

object_colname

Column name in table mytab1 with the objects to compare, Default: 'object'

direction_colname

Column name in table mytab2 with the objects to compare, Default: 'direction'

increasingCutoff

cutoff of same size, typical 0 for standard metric effect sizes or 1 for Foldchanges, Default: 0

Details

DETAILS

Value

Returns a plot and the code to generate the plot

Examples

 #EXAMPLE1
 library(eulerr)
library(toolboxH)

tab1 = data.table(object = letters[1:10], direction = rnorm(10))
tab1
tab2 = data.table(object = letters[5:25], direction = rnorm(21))
tab2

plottext = makeEuler(tab1 , tab2 , titletext = "Yes, we can Make a Title great again")
# savePlotInMultiFormats("exampleplot", 4, 3, plotecode = plottext)

holgerman/toolboxH documentation built on June 25, 2022, 2:42 p.m.