classesmethods.relaimpo {relaimpo} | R Documentation |
Output objects from package relaimpo have classes relimplm
(output from calc.relimp), relimplmboot
(output from boot.relimp) and relimplmbooteval
(output from booteval.relimp).
For classes relimplm
and relimplmbooteval
, there are methods for plotting and printing,
usage of which is described below.
For class relimplm
, there is in addition a method for extracting slots of the class with $.
Since class relimplmbooteval
inherits from relimplm
, this method can also be applied there.
## S3 method for class 'relimplm': print(x,...) ## S3 method for class 'relimplm': plot(x,...,names.abbrev=4) ## S3 method for class 'relimplmbooteval': print(x,...) ## S3 method for class 'relimplmbooteval': plot(x, ..., lev=max(x@level), names.abbrev=4)
x |
x is an output object from package relaimpo of the required class |
... |
... further arguments to function plot |
names.abbrev |
names.abbrev is an integer that provides the number of characters to which the bar labels are shortened (default: 4). |
lev |
lev is a numeric that provides the confidence level to be plotted (default: maximum available confidence level). |
Print methods produce annotated output for calc.relimp
and booteval.relimp
.
The plot methods produce barplots of relative contributions,
either of the metrics alone for output objects of class relimplm
from function calc.relimp
,
or of the metrics with lines indicating confidence intervals for output objects of class relimplmbooteval
from function booteval.relimp
.
All par()
options can be set and should work on plot. Exception: mfrow is set by the plot function,
depending on the number of metrics to plot.
In addition, there is a method that allows using $ for extracting slots of classes relimplm
and relimplmbooteval
, i.e. elements from results of functions calc.relimp
and booteval.relimp
can be extracted as though the output objects were lists.
Ulrike Groemping, TFH Berlin
Go to http://www.tfh-berlin.de/~groemp for further information and references.
See also calc.relimp
, booteval.relimp
, relaimpo