comparePlot-methods {RobAStBase} | R Documentation |
Plots 2-4 influence curves to the same model.
comparePlot(obj1, obj2, ... ) ## S4 method for signature 'IC, IC': comparePlot(obj1, obj2, obj3 = NULL, obj4 = NULL, ..., withSweave = getdistrOption("withSweave"), main = FALSE, inner = TRUE, sub = FALSE, col.inner = par("col.main"), cex.inner = 0.8, bmar = par("mar")[1], tmar = par("mar")[3], mfColRow = TRUE)
obj1 |
object of class "InfluenceCurve" |
obj2 |
object of class "InfluenceCurve" to be compared with obj1 |
obj3 |
optional: object of class "InfluenceCurve" to be compared with obj1 |
obj4 |
optional: object of class "InfluenceCurve" to be compared with obj1 |
withSweave |
logical: if TRUE (for working with Sweave )
no extra device is opened |
main |
logical: is a main title to be used? or just as argument main in plot.default . |
inner |
logical: panels have their own titles? or character vector of / cast to length number of comparands: main in plot.default ) |
sub |
logical: is a sub-title to be used? or just as argument sub in plot.default . |
tmar |
top margin – useful for non-standard main title sizes |
bmar |
bottom margin – useful for non-standard sub title sizes |
cex.inner |
magnification to be used for inner titles relative
to the current setting of cex ; as in
par |
col.inner |
character or integer code; color for the inner title |
mfColRow |
shall default partition in panels be used — defaults to TRUE |
... |
further arguments to be passed to plot |
Any parameters of plot.default
may be passed on to this particular
plot
method.
For main-, inner, and subtitles given as arguments main
,
inner
, and sub
, top and bottom margins are enlarged to 5 resp.
6 by default but may also be specified by tmar
/ bmar
arguments.
If main
/ inner
/ sub
are
logical then if the respective argument is FALSE
nothing is done/plotted,
but if it is TRUE
, we use a default main title taking up the calling
arguments in case of main
, default inner titles taking up the
class and (named) parameter slots of arguments in case of inner
,
and a "generated on <data>"-tag in case of sub
.
Of course, if main
/ inner
/ sub
are character
, this
is used for the title; in case of inner
it is then checked whether it
has correct length. In all title arguments, the following patterns are substituted:
"%C1"
,"%C2"
,["%C3"
,]["%C4"
]obj<i>
, i=1,..4"%A1"
,"%A2"
,["%A3"
,]["%A4"
]obj<i>
, i=1,..4"%D"
Peter Ruckdeschel Peter.Ruckdeschel@itwm.fraunhofer.de
Kohl, M. (2005) Numerical Contributions to the Asymptotic Theory of Robustness. Bayreuth: Dissertation.
L2ParamFamily-class
, IC-class
, plot
if(require(ROptEst)){ N0 <- NormLocationScaleFamily(mean=0, sd=1) N0.Rob1 <- InfRobModel(center = N0, neighbor = ContNeighborhood(radius = 0.5)) IC1 <- optIC(model = N0, risk = asCov()) IC2 <- optIC(model = N0.Rob1, risk = asMSE()) comparePlot(IC1,IC2) }