RobAStBase (version 1.2.1)

internal_helpers_for_producing_grids_in_plots_RobAStBase: Internal / Helper functions of package RobAStBase for grids in plot functions

Description

These functions are internally used helper functions for plot, infoPlot comparePlot in package RobAStBase.

Usage

.getDimsTD(L2Fam,to.draw.arg)
.producePanelFirstS(panelFirst,IC,to.draw.arg, isInfoPlot=FALSE,
                                x.ticks, scaleX, scaleX.fct,
                                y.ticks, scaleY, scaleY.fct)
.producePanelFirstSn(panelFirst, x.ticks, scaleX, scaleX.fct,
                                y.ticks, scaleY, scaleY.fct, logArg)

Arguments

L2Fam

the model at which the plot is produced (of class L2ParamFamily).

panelFirst

argument panel.first to be mingled for grid plotting.

x.ticks

numeric: coordinates in original scale of user-given ticks on x-axis.

scaleX

logical; shall X-axis be rescaled (by default according to the cdf of the underlying distribution)?

scaleX.fct

an isotone, vectorized function mapping the domain of the IC to [0,1]; if scaleX is TRUE and scaleX.fct is missing, the cdf of the underlying observation distribution.

y.ticks

numeric: coordinates in original scale of user-given ticks on y-axis.

scaleY

logical; shall Y-axis be rescaled (by default according to a probit scale)?

scaleY.fct

an isotone, vectorized function mapping for each coordinate the range of the respective coordinate of the IC to [0,1]; defaulting to the cdf of \({\cal N}(0,1)\).

to.draw.arg

Either NULL (default; everything is plotted) or a vector of either integers (the indices of the subplots to be drawn) or characters --- the names of the subplots to be drawn: these names are to be chosen either among the row names of the trafo matrix rownames(trafo(eval(x@CallL2Fam)@param)) or if the last expression is NULL a vector "dim<dimnr>", dimnr running through the number of rows of the trafo matrix.

IC

object of class "InfluenceCurve"

isInfoPlot

logical; is this function to be used in infoPlot or (TRUE) in another plot (FALSE)?

logArg

a character with log-arguments for plot.

Details

.getDimsTD computes the number of panels to be plotted. .producePanelFirstS produces an unevaluated expression to be used as argument panel.first in the diagnostic plots; i.e.; knowing the actual tickmarks of the axis at the time of evaluation, code is inserted to plot horizontal and vertical grid lines through these tickmarks.