plot.LevelsVsLayerCFbyMAF: plot levels per layer and MAF for conditional forests

Description Usage Arguments See Also Examples

Description

A generic function to plot LevelVsLayerCFbyMAF objects as returned by tableLevelsVsLayerCFbyMAF.

Usage

1
2
3
plot.LevelsVsLayerCFbyMAF(x, norm.by.nodes = TRUE, legPos = "topleft", 
col = 1:4, ylab = NULL, xlab = "layer", type = "o", pch = 4, 
legend = NULL, ...)

Arguments

x

An object of class LevelsVsLayerCFbyMAF that is returned by tableLevelsVsLayerCFbyMAF

norm.by.nodes

A logical indicating whether the absolute category frequencies in each layer of the forest should be normed by the number of nodes per layer. Defaults to TRUE.

legPos

The position of the legend. Passed to legend.

col, ylab, xlab, type, pch

Arguments passed to plot.

legend

Passed to legend.

...

Further arguments passed to plot.

See Also

tableLevelsVsLayerCFbyMAF

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
YX <- simulateSNPdata(n.obs = 500, n.snp = 200, seed = 123, 
		maf = rep(c(0.05, 0.1, 0.25, 0.4), each = 50))

cForest <- cforest(y ~ ., data = YX, 
	controls = cforest_control(mtry = sqrt(ncol(YX) - 1), replace = FALSE))
	
cForestTab <- tableLevelsVsLayerCFbyMAF(cForest)

plot(cForestTab)
plot(cForestTab, norm.by.nodes = FALSE, legPos = "topright")

adibender/rFtools documentation built on May 14, 2019, 5:13 a.m.