Learn R Programming

rCUR (version 1.3)

plotLeverage: Function to plot leverage scores

Description

Function to plot the individual values and uniform level of leverage scores. The most influental features may be higlighted.

Usage

plotLeverage(x, C=TRUE, mplr=1000, top.n=100, top.col='red', top.pch=16, ul.col='red', ul.lty=2, ...)

Arguments

x
object of class CURobj-class
C
logical, if it is TRUE, then calculated the rank for the leverage scores belongs to columns, if FALSE, then to rows
mplr
multiplier of leverage scores
top.n
number of highlighting items from top of leverage score list
top.col
color of highligting points
top.pch
pch of highligting points, see par()
ul.col
color of the line of leverage score uniform level
ul.lty
line type of leverage score uniform level
...
further graphical parameters of function plot()

References

Mahoney M. W. and Drineas P. (2009) CUR matrix decompositions for improved data analysis. PNAS, 106(3):697-702

Andras Bodor, Istvan Csabai, Michael W Mahoney and Norbert Solymosi rCUR:an R package for CUR matrix decomposition BMC Bioinformatics 2012, 13:103 doi:10.1186/1471-2105-13-103

Examples

Run this code
data(STTm)
res <- CUR(STTm, 31, 12, 3)
plotLeverage(res, C=FALSE, top.n=10, las=1)

Run the code above in your browser using DataLab