OHDSI / NetworkMetaAnalysis

[in development] A package to take a collection of target-comparator-outcome estimates and produce indirect network meta-analytics estimates across all target-comparator-outcomes
Apache License 2.0
1 stars 3 forks source link

Fix plot network + factorise data import #3

Closed epiben closed 4 years ago

epiben commented 4 years ago

Improved padding around labels in plotNetwork; it's still not perfect, but labels are now handled better and the user can tweak the expansion of the plotting area on each axis separately.

Data import has also been improved. Before, data were simply loaded and wrangled with one call to fetchTcoEstimates, but I wanted to facilitate using TCO estimates from files as well, so the sole function of fetchTcoEstimates is now to query the database; loading the results from a file can be done with any of a number of functions (including read.csv (base) or stringr::read_delim). The excludedDatabases argument has been moved to wrangleTcoEstimates, as it pertains equally to data from a database and from a file.