theme_who) and colour palette (
who_palettes) resolving issue #86. Plus
scale_fill_whofunctions for using the palette. Thanks to @mariabnd for implementing this.
for_presentation- to switch plots to presentation mode.
verboseto default to
tidyversefrom suggests as per this issue.
Thanks to @mariabnd for contributing to this release.
render_country_reportfrom producing a country level report. Added tests to flag this in the future.
render_country_reportruns without errors.
ggplot2best practises (#77).
summarise_tb_burdenthat caused an error when confidence intervals were not wanted and rates were estimated for countries.
summarise_metricfunction to the package. This function was previously used internally by the TB report. For a given year it returns the value of given metric, along with the regional and global rankings. The average change over the last decade is also supplied. Linked to #57.
search_data_dictcan now be used to search for a dataset by name. All variables in this dataset are then returned.
available_datasets, that lists the datasets available to be imported into R using the package. This dataframe also gives a short description of each dataset, details the timespan of the dataset, and whether or not it is downloaded by default. Used by
get_tb_burdenas a URL source for downloading the datasets. Linked to #58.
get_tb_burdencan now import additional datasets (listed in
available_datasets), clean them, and then link them with the core dataset. This adds over 400 new variables to the package and provides a near complete list of data used in the WHO Tuberculosis global report. Please open an issue if you find an issue with this dataset.
0.6.0to signal a major release.
getTBinRand also added this information to the README.
search_data_dicthas improved messaging and no longer returns an error when nothing is found in the data dictionary. From #65.
search_data_dicthas expanded testing to account for new dataset searching and for failing to find results. Linked to #60.
dplyr::funsas soft deprecated.
summarise_metricand added to documentation.
available_datasetsand new data import to the README and to the getting started vignette.
usethis::use_tidy_descriptionto improve DESCRIPTION formatting.
usethis::use_tidy_versions()to set package to dependent on package versions used during development work. Added this to makefile to make automated.
Makefileuse with `make message="your commit message". This will automatically run all build steps that are required and then commit any changes.
summarise_tb_burdenand added validating tests.
summarise_tb_burdenand added validating tests.
plot_tb_burden_summary. Function wraps
summarise_tb_burdenand allows all in one summary plotting. Inspired by this case study.
rmarkdownparameterised country level report on TB.
render_country_reportto generate a TB report for a given country.
map_tb_burdento not use
geom_pathfor country outlines.
plot_tb_burdento allow smooth trend lines to be plotted (derived using
plot_tb_burdento improve plot appearance.
legendargument to all plotting functions to allow control of the legend appearance.
stylerpackage. Based on this issue.
dplyr8.0 release and
itdependsto package report functionality.
map_tb_burdento work with new version of rlang.
map_tb_burdentests to work with new version of R lang.
plot_tb_burden_overview. This allows a range of years to be plotted. The default is all years which was the previous de-facto default.
summarise_tb_burdenfunction for summarising metrics across regions, across custom groups and globally.
NAwhen the data is read in.
vdiffrto test plots when not on CRAN.
map_tb_burdenwhich was adding duplicate variables which caused map build to fail.
viridis_paletteoption to all plotting functions to allow the colour scheme to be set by the user.
Makefileat top level and for
data-rawto build the package.
annual_changeargument to all plotting/mapping functions. Passed to
prepare_df_plot. Returns the percentage annual change for the supplied metric.
transargument to all plotting functions to allow scaling using any
run_tb_dashboardto launch a shiny dashboard for exploring global tuberculosis
get_datafunctions are called.
utils::read.csvfor downloading the data when
fread::data.tablefails. Related to this issue.
download_dataargument to all functions to make downloading data explicit.
saveargument to all functions to make saving the data explicit.
patharguments to all functions to make location of saving explicit.
map_tb_burdenfunction to map TB metrics.
NEWS.mdfile to track changes to the package.
plot_tb_burden_overviewfunction to plot an overview of the TB burden.
plot_tb_burdenfunction to plot TB burden
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.