ggplot.dca.lrm: Plot Decision Curve

Description Usage Arguments Value Examples

View source: R/ggplot_dca.lrm.R

Description

Plot Decision Curve

Usage

1
2
## S3 method for class 'dca.lrm'
ggplot(data, color = TRUE, linetype = TRUE, lwd = 1.05)

Arguments

data

results of dca() function

color

logical, whether models will be classified by color

linetype

logical, whether models will be classified by line type

lwd

line width

Value

a ggplot2 picture

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
library(rmda)
library(ggDCA)
library(rms)
data(dcaData)

base.model <- lrm(Cancer~Age + Female + Smokes,data = dcaData)

d <-dca(base.model)

ggplot(d)


full.model <- lrm(Cancer~Age + Female + Smokes + Marker1 + Marker2,
                  data = dcaData)

d <- dca(base.model,full.model)

ggplot(d)

ggplot(d,color=FALSE)

ggplot(d,linetype = FALSE)

rfp=rFP.p100(x=d)

ggplot(rfp)

AUDC(d)
range(d)

yikeshu0611/ggDCA documentation built on Dec. 8, 2020, 5:44 a.m.