cvrs2.plot | R Documentation |
The function plots the risk scores
cvrs2.plot(cvrs, cvrs2, cluster.pred, cluster.true = NULL, sim = FALSE)
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 |
A plot of the risk scores is produced and saved into a ggplot object
A ggplot object
Svetlana Cherlin, James Wason
analyse.simdata2
and analyse.realdata2
functions; plot
and print
methods.
#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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.