Description Usage Arguments Examples
View source: R/genomicRiskSummaryPlot.R
A function to generate the genomic risk summary plot, which is a series of text plots accompanied by a line plot displaying the values from one of the columns, usually post-test probability.
1 | genomicRiskSummaryPlot(data, column)
|
data |
A data.frame of the variables to use in the plots. The column that is used for the line plot must have one additional value than the other columns. The names of the columns in the data.frame will be used for the names of the columns in the plot. |
column |
The name or index of the column to be used for the line plot. |
1 2 3 4 5 | require(ggplot2); require(grid); require(gridExtra); require(scales);
MI_df <- read.csv(system.file("extdata", "MI_genomic_risk.txt", package = "ClinPlots"), sep='\t')
genomicRiskSummaryPlot(MI_df, "pt_probability")
#running genomicRiskSummaryPlot(MI_df, 7) will produce same result
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.