submatch.plot: Plot of Variable/Interaction Frequency

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/submatch.plot.R

Description

Plot of frequency of occurrence of variables/interactions in increasingly larger interactions identified in a logic forest model.

Usage

1
submatch.plot(fit, pred.nms, pis, preds, size, color = FALSE)

Arguments

fit

an object of class logforest.

pred.nms

an optional vector of predictor names considered for subset matching. If missing, all variable names from the original data used to construct the logic forest model are considered.

pis

a numeric value representing the number of variables/interactions to be included on the plot. Variables/interactions are sorted according to frequency of occurrence as subset matches.

preds

a numeric value representing the number of predictors in the original dataset.

size

a numeric value for the size of the interaction terms represented on the plot.

color

logical. If TRUE, plots are generated using color, otherwise they are in grayscale.

Details

The center plot shows the most frequently occurring interactions of the size specified in the arguments. Circles on the plot represent the relative frequency of occurrence on the interactions on the y-axis in interactions of the same size and all larger sizes for those interactions identified in a logic forest model. The histogram at the top of the plot represents the total number of interaction terms of the size indicated on the x-axis identified by the logic forest model. The dark gray in this histogram represents the number of interactions of that size that are accounted for by the interactions shown of the y-axis. The histogram on the right side of the plot represents the frequency of occurrence of all interactions identified in a logic forest model of the size specified in the arguments. Dark gray bars in the histogram represent the frequency of occurrence of those interactions on the y-axis.

Value

Invisibly the number of subset matches at each size for those interactions given in the plot.

Author(s)

Bethany Wolf wolfb@musc.edu

References

Wolf, B.J., Slate, E.H., Hill, E.G. (2010) Logic Forest: An ensemble classifier for discovering logical combinations of binary markers. Bioinformatics.

See Also

vimp.plot, link{persistence.plot}

Examples

1
2
3
4
5
6
7
8
data(logforest.fit, LBoost.fit)

#Plot of subset matches for the 5 most frequently occurring interactions 
#of size 2 in the logic forest model logforest.fit
submatch.plot(fit=logforest.fit, pis=5, preds=50, size=2, color=FALSE)

#Same plot for the LBoost model LBoost.fit
submatch.plot(fit=LBoost.fit, pis=5, preds=50, size=2, color=FALSE)

LogicForest documentation built on May 30, 2017, 3:07 a.m.