I am trying out the example from the package documentation;
VennDiagram::make.truth.table:
make.truth.table(c(a = 1, b = 2, c = 3, d = 4))
I get this error:
Error in make.truth.table(c(a = 1, b = 2, c = 3, d = 4)) :
could not find function "make.truth.table"
I have found nothing online about this function except the VennDiagram
documentation.
Please help me understand:
a) the function output
b) why it is not working
I am using:
R version 3.4.1 (2017-06-30)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
RStudio version 1.0.153
attached base packages:
[1] grid stats graphics grDevices utils datasets methods base
other attached packages:
[1] VennDiagram_1.6.17 futile.logger_1.4.3 knitr_1.17
I believe this function was replaced by
get.venn.partitions()
after the package was updated. However, the documentation was not updated, and it should be.get.venn.partitions(list(a = 1, b = 2, c = 3, d = 4))
Which outputs:
This is indeed the truth table. As a useful aside, this function is important to help make sense of the calculate.overlap function as the counts in the truth table help you identify which list corresponds to which overlap.