Description Usage Arguments Details Examples
View source: R/DisorderCohortRiskPlot.R
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.
1 |
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. |
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)
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.