disorderCohortRiskPlot: Function to generate the disorder risk cohort plot of...

Description Usage Arguments Details Examples

View source: R/DisorderCohortRiskPlot.R

Description

A function to generate the disorder risk cohort plot, which summarizes the the post-test probabilities of each disorder cohort. The disorder risk cohort plot is comprised of a line plot that displays the distribution of post-test probabilities for each disorder, along with the direction of change in probability. Each line in the plot is aligned with the name of the disorder, as well as the number of individuals in the disorder cohort.

Usage

1

Arguments

data

A data.frame that contains the columns disorder, n, min, max, avg, and increased. Details about these parameters can be seen in the format section below.

Details

The data for this parameter requires 6 columns: disorder, n, min, max, avg, and increased.

disorder: the name of the disorder (character)
n: the number of individuals in the disorder cohort (integer)
min: the minimum post-test probability (numeric)
max: the maximum post-test probability (numeric)
avg: the average post-test probability (numeric)
increased: whether or not the post-test probability increased (logical)

Examples

1
2
3
4
require(ggplot2); require(grid); require(gridExtra); require(scales);

cr_df <- read.csv(system.file("extdata", "clinical_risk.txt", package = "ClinPlots"), sep='\t')
disorderCohortRiskPlot(cr_df)

JakeConway/ClinPlots documentation built on May 7, 2019, 10:19 a.m.