now with a shiny hwe-app
This commit is contained in:
agdamsbo 2019-11-08 10:59:45 +01:00
parent e606731d50
commit 84e390f378
6 changed files with 25 additions and 0 deletions

View File

@ -10,6 +10,7 @@ export(cpr_sex)
export(date_convert)
export(dob_extract_cpr)
export(hwe_allele)
export(hwe_app)
export(hwe_geno)
export(hwe_sum)
export(plot_ord_odds)

13
R/hwe_app.R Normal file
View File

@ -0,0 +1,13 @@
#' Shiny app of the Hardy Weinberg Equillibrium calculations
#'
#' App to easily calculate and visualize the HWE.
#'
#' @export
hwe_app <- function() {
appDir <- system.file("shiny-examples", "hwe_calc", package = "daDoctoR")
if (appDir == "") {
stop("Could not find app directory. Try re-installing `daDoctoR`.", call. = FALSE)
}
shiny::runApp(appDir, display.mode = "normal")
}

BIN
inst/.DS_Store vendored Normal file

Binary file not shown.

11
man/hwe_app.Rd Normal file
View File

@ -0,0 +1,11 @@
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hwe_app.R
\name{hwe_app}
\alias{hwe_app}
\title{Shiny app of the Hardy Weinberg Equillibrium calculations}
\usage{
hwe_app()
}
\description{
App to easily calculate and visualize the HWE.
}