ComparePlot {RobAStBase} | R Documentation |
Wrapper function for function comparePlot
Description
The wrapper ComparePlot
(capital C!) takes most of arguments
to function comparePlot
(lower case c!) by default and gives a user
possibility to run the function with low number of arguments.
Usage
ComparePlot(IC1, IC2, y, ..., IC3 = NULL, IC4 = NULL,
alpha.trsp = 100, with.legend = TRUE, rescale = FALSE,
withCall = TRUE)
Arguments
IC1 |
object of class |
IC2 |
object of class |
IC3 |
object of class |
IC4 |
object of class |
y |
optional data argument — for plotting observations into the plot |
... |
additional parameters (in particular to be
passed on to |
alpha.trsp |
the transparency argument (0 to 100) for ploting the data |
with.legend |
the flag for showing the legend of the plot |
rescale |
the flag for rescaling the axes for better view of the plot |
withCall |
the flag for the call output |
Value
invisible(retV)
where retV
is the return value
of the respective call to the full-fledged function comparePlot
with the additional item wrapcall
with the call
to the wrapper ComparePlot
and wrappedcall
the call to
to the full-fledged function comparePlot
.
Details
Calls comparePlot
with suitably chosen defaults;
if withCall == TRUE
, the call to
comparePlot
, i.e., item wrappedcall
of the (hidden)
return value, is printed.
Examples
# Gamma
fam <- GammaFamily()
rfam <- InfRobModel(fam, ContNeighborhood(0.5))
IC1 <- optIC(model = fam, risk = asCov())
IC2 <- makeIC(list(function(x)sin(x),function(x)x^2), L2Fam = fam)
Y <- distribution(fam)
y <- r(Y)(100)
ComparePlot(IC1, IC2, y, withCall = TRUE)