cvrs2.plot: Plot the risk scores for two outcomes

View source: R/extras.R

cvrs2.plotR Documentation

Plot the risk scores for two outcomes

Description

The function plots the risk scores

Usage

cvrs2.plot(cvrs, cvrs2, cluster.pred, cluster.true = NULL, sim = FALSE)

Arguments

cvrs

A data frame of the risk scores 1

cvrs2

A data frame of the risk scores 2

cluster.pred

True clusters

sim

An indicator of whether the data is simulated or real

sens.pred

A data frame of the predicted sensitivity statuses

Details

A plot of the risk scores is produced and saved into a ggplot object

Value

A ggplot object

Author(s)

Svetlana Cherlin, James Wason

See Also

analyse.simdata2 and analyse.realdata2 functions; plot and print methods.

Examples

#Analyse simulated data and plot the risk scores
data(simdata)
sig = 0.05
group.prop.sig = 0.2
seed = 123
plotrs = T
simres.cvrs2 = analyse.simdata2(simdata2, sig, group.prop.sig, seed, plotrs)
 #Plot the risk scores
cvrs2.plot(simres.cvrs2$cvrs, simres.cvrs2$cvrs2, simres.cvrs2$cluster.pred, simdata2$patients$cluster.true, TRUE)

svetlanache/rapids documentation built on Sept. 15, 2023, 7 a.m.