plotContingency: generates plot of response vs out-of-bag predictions across...

Description Usage Arguments Author(s) See Also Examples

View source: R/plotContingency.R

Description

For categorical models, this function generates a graphical representation of the true vs predicted contingency matrix across classes for a given alpha.

Usage

1
2
3
4
plotContingency(x, alpha.index=NULL, xlab="class (true)", ylab="class (predicted)", 
cex.lab=0.95, main=NULL, col.main="black", cex.main=0.85, cex.axis=1, 
symbol.size.inches=0.5, bg.color="steelblue2", fg.color=NULL, margin=0.2, 
frequency.label=T, frequency.label.cex=1, frequency.label.offset=0, ...)

Arguments

x

eNetXplorer object.

alpha.index

Integer indices to select alpha values. Default is 1:length(alpha)

xlab

Custom x-axis label.

ylab

Custom y-axis label.

cex.lab

Axis label size.

main

Custom title.

col.main

Title color.

cex.main

Title size.

cex.axis

Axis size.

symbol.size.inches

Symbol size.

bg.color

Symbol color.

fg.color

Color of symbol background.

margin

Margin size to accomodate symbols.

frequency.label

Logical to display class frequency labels. Default is TRUE.

frequency.label.cex

Size of class frequency labels.

frequency.label.offset

Offset of class frequency labels.

...

Additional plotting parameters.

Author(s)

Julian Candia and John S. Tsang
Maintainer: Julian Candia [email protected]

See Also

eNetXplorer, plot

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
data(QuickStartEx)
binarized=rep("low",length(QuickStartEx$response))
binarized[QuickStartEx$response>median(QuickStartEx$response)]="high"
fit = eNetXplorer(x=QuickStartEx$predictor,y=binarized,family="binomial",n_run=20, 
n_perm_null=10,seed=111)
plot(x=fit,plot.type="contingency")
plotContingency(x=fit,alpha.index=6)

## End(Not run)

juliancandia/eNetXplorer documentation built on April 22, 2018, 9:20 p.m.