Compute the coordinates to produce a tendril plot.
In the tendril plot, each tendril (branch) represents a type of events,
and the direction of the tendril is dictated by on which treatment arm the
event is occurring. If an event is occurring on the first of the two
specified treatment arms, the tendril bends in a clockwise direction.
If an event is occurring on the second of the treatment arms, the
tendril bends in an anti-clockwise direction.
Ref: Karpefors, M and Weatherall, J., "The Tendril Plot - a novel visual summary
of the incidence, significance and temporal aspects of adverse events in
clinical trials" - JAMIA 2018; 25(8): 1069-1073
R library for tendril plotting between two treatments.
The package can be downloaded as a .tar.gz from the appropriate release page
The package can be installed with RStudio in Tools -> Install Packages -> Install from package archive file
You can ensure that tendril is installed in an isolated packrat environment. This is only required if you want to keep its installation isolated and you don't have access to the dependencies in your normal working environment
To install the dependencies in your packrat environment on OSX you will need clang with OpenMP support. Unfortunately Mojave does not ship with it.
brew install gfortran
brew install llvm
brew install boost
brew install libomp
CC=/usr/local/opt/llvm/bin/clang
CXX=/usr/local/opt/llvm/bin/clang++
CXX11=/usr/local/opt/llvm/bin/clang++
CXX14=/usr/local/opt/llvm/bin/clang++
CXX17=/usr/local/opt/llvm/bin/clang++
CXX1X=/usr/local/opt/llvm/bin/clang++
LDFLAGS=-L/usr/local/opt/llvm/lib -Wl,-rpath,/usr/local/opt/llvm/lib
CFLAGS=-I/usr/local/opt/llvm/include
CPPFLAGS=-I/usr/local/opt/llvm/include
Type
make env