-
Notifications
You must be signed in to change notification settings - Fork 2
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 #88 from UCD-SERG/visualization
Visualization
- Loading branch information
Showing
29 changed files
with
165 additions
and
100 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
Package: serocalculator | ||
Type: Package | ||
Title: Estimating Infection Rates from Serological Data | ||
Version: 1.0.0 | ||
Version: 1.0.0.9000 | ||
Authors@R: c( | ||
person(given = "Peter", family = "Teunis", email = "[email protected]", role = c("aut", "cph"), comment = "Author of the method and original code."), | ||
person(given = "Kristina", family = "Lai", email = "[email protected]", role = c("aut", "cre")), | ||
person(given = "Chris", family = "Orwa", role = "aut"), | ||
person(given = "Kristen", family = "Aiemjoy", email = "[email protected]", role = c("aut")), | ||
person(given = "Douglas Ezra", family = "Morrison", email = "[email protected]", role = c("aut"))) | ||
Description: Translates antibody levels measured in cross-sectional population | ||
|
@@ -28,7 +29,9 @@ Imports: | |
stats, | ||
tibble, | ||
tidyr, | ||
utils | ||
utils, | ||
ggfortify, | ||
cli | ||
Suggests: | ||
parallel, | ||
knitr, | ||
|
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
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
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
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,37 @@ | ||
#' @title | ||
#' Print Method for `seroincidence.by` Object | ||
#' | ||
#' @description | ||
#' Custom [print()] function to show output of the seroincidence calculator [est.incidence.by()]. | ||
#' | ||
#' @param x A list containing output of function [est.incidence.by()]. | ||
#' @param ... Additional arguments affecting the summary produced. | ||
#' | ||
#' @examples | ||
#' | ||
#' \dontrun{ | ||
#' # estimate seroincidence | ||
#' seroincidence <- est.incidence.by(...) | ||
#' | ||
#' # print the seroincidence object to the console | ||
#' print(seroincidence) | ||
#' | ||
#' # or simply type (appropriate print method will be invoked automatically) | ||
#' seroincidence | ||
#' } | ||
#' | ||
#' @export | ||
print.seroincidence.by <- function(x, ...) | ||
{ | ||
cat("`seroincidence.by` object estimated given the following setup:\n") | ||
cat(paste("a) Antigen isotypes :", paste(attr(x, "antigen_isos"), collapse = ", ")), "\n") | ||
cat(paste("b) Strata :", paste(attr(x, "Strata") %>% attr("strata_vars"), collapse = ", ")), "\n") | ||
|
||
cat("\n") | ||
cat("This object is a list of `seroincidence` objects, with added meta-data attributes:") | ||
cat("`antigen_isos` - Character vector of antigen isotypes used in analysis.\n") | ||
cat("`Strata` - Input parameter strata of function `est.incidence.by()`\n") | ||
cat("\n") | ||
cat("Call the `summary()` function to obtain output results.\n") | ||
invisible(x) | ||
} |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.