Learn R Programming

RobAStBase (version 1.2.6)

PlotIC: Wrapper function for plot method for IC

Description

The wrapper PlotIC takes most of arguments to the plot method by default and gives a user possibility to run the function with low number of arguments.

Usage

PlotIC(IC, y, ..., alpha.trsp = 100, with.legend = TRUE,
    rescale = FALSE, withCall = TRUE)

Value

invisible(retV) where retV is the return value of the respective call to the full-fledged plot method with the additional item wrapcall with the call to PlotIC and wrappedcall the call to to the full-fledged plot method.

Arguments

IC

object of class IC

y

optional data argument --- for plotting observations into the plot

...

additional parameters (in particular to be passed on to plot)

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

Details

Calls plot with suitably chosen defaults; if withCall == TRUE, the call to plot, i.e., item wrappedcall from the (hidden) return value, is printed.

Examples

Run this code
# Gamma
fam <- GammaFamily()
rfam <- InfRobModel(fam, ContNeighborhood(0.5))
IC <- optIC(model = fam, risk = asCov())
Y <- distribution(fam)
y <- r(Y)(1000)
PlotIC(IC, y, withCall = FALSE)

Run the code above in your browser using DataLab