-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from thibautjombart/tabsplit
Prettifying progress
- Loading branch information
Showing
6 changed files
with
184 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#' Function to plot discretised duration distribution | ||
#' | ||
#' This function provides custom plots for the output of `distcrete`. | ||
#' | ||
#' @param los a length of stay distribution of class `distcrete` | ||
#' @param title a string to be added to the resulting ggplot | ||
#' | ||
#' @author Sam Clifford | ||
#' | ||
|
||
plot_distribution <- function(los, title = NULL) { | ||
max_days <- max(1, los$q(.999)) | ||
days <- 0:max_days | ||
dat <- data.frame(days = days, | ||
y = los$d(days)) | ||
|
||
ggplot2::ggplot(data=dat, | ||
ggplot2::aes(x=days, y=y)) + | ||
ggplot2::geom_col(fill = cmmid_color, width = 0.8) + | ||
ggplot2::xlab("Days in hospital") + | ||
ggplot2::ylab("Probability") + | ||
ggplot2::ggtitle(title) + | ||
ggplot2::theme_bw() + | ||
large_txt | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
## Acknowledgements | ||
|
||
The named authors (TJ, ESN, MJ, OLPDW, GMK, RME, AJK, CABP, WJE) had the following sources of funding: | ||
|
||
TJ receives funding from the Global Challenges Research Fund (GCRF) project 'RECAP' managed through RCUK and ESRC (ES/P010873/1), the UK Public Health Rapid Support Team funded by the United Kingdom Department of Health and Social Care and from the National Institute for Health Research (NIHR) - Health Protection Research Unit for Modelling Methodology. ESN receives funding from the Bill and Melinda Gates Foundation (grant number: OPP1183986). MJ receives funding from the Bill and Melinda Gates foundation (grant number: INV-003174) and the NIHR (grant numbers: 16/137/109 and HPRU-2012-10096). SRP receives funding from the Bill and Melinda Gates Foundation (grant number: OPP1180644). RME receives funding from HDR UK (grant number: MR/S003975/1). SF is supported by a Sir Henry Dale Fellowship jointly funded by the Wellcome Trust and the Royal Society (Grant number 208812/Z/17/Z). AJK receives funding from the Wellcome Trust (grant number: 206250/Z/17/Z). GMK was supported by a fellowship from the UK Medical Research Council (MR/P014658/1). | ||
|
||
The UK Public Health Rapid Support Team is funded by UK aid from the Department of Health and Social Care and is jointly run by Public Health England and the London School of Hygiene & Tropical Medicine. The University of Oxford and King's College London are academic partners. The views expressed in this publication are those of the authors and not necessarily those of the National Health Service, the National Institute for Health Research or the Department of Health and Social Care. | ||
|
||
### Authors' contributions | ||
|
||
In alphabetic order: | ||
|
||
* JE, MJ, TJ developed the methodology. | ||
* ESN, MJ, TJ contributed code. | ||
* TJ performed the analyses. | ||
* ESN, TJ reviewed code. | ||
* ESN, TJ wrote the first draft of the manuscript. | ||
* GMK, AJK, CP, ESN, JE, MJ, OLPDW, RE, SF, TJ contributed to the manuscript. | ||
|
||
### Shiny app developers | ||
|
||
This Shiny app was developed by the following people: Thibaut Jombart, Emily Nightingale, Eleanor Rees, Gwen Knight, Carl AB Pearson, Samuel Clifford. Each contributed to adaptation of the model, writing body text, visualisation, app design and testing. | ||
|
||
### COVID-19 Working Group | ||
|
||
CMMID COVID-19 Working Group gave input on the method, contributed data and provided elements of discussion. In addition to the named authors and contributors above, the following authors were part of the Centre for Mathematical Modelling of Infectious Disease COVID-19 working group: Billy J Quilty, Christopher I Jarvis, Petra Klepac, Charlie Diamond, Joel Hellewell, Timothy W Russell, Alicia Rosello, Yang Liu, James D Munday, Sam Abbott, Kevin van Zandvoort, Graham Medley, Kiesha Prem, Nicholas Davies, Fiona Sun, Hamish Gibbs, Amy Gimma, Nikos I Bosse, Sebastian Funk. Each contributed in processing, cleaning and interpretation of data, interpreted findings, contributed to the manuscript, and approved the work for publication. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters