Learn R Programming

OptimalDesign (version 1.0.1)

od_plot: Visualization of a design

Description

Visualizes selected aspects of an experimental design

Usage

od_plot(Fx, w, X=NULL, w.pool=c("sum", "0"), w.color="darkblue",
        w.size=1, w.pch=16, w.cex=0.8, w.lim=0.01, crit="D",
        h=NULL, dd.pool=c("max", "mean"), dd.color="orange",
        dd.size=1.5, dd.pch=15, asp = NA, main.lab="",
        y.lab="", return.pools=FALSE, echo=TRUE)

Value

If return.pool is set to TRUE, the procedure returns the data used to plot the figure. The data can be used to plot a different figure according to the user's needs.

Arguments

Fx

the n times m (where m>=2, m<=n) matrix containing all candidate regressors (as rows), i.e., n is the number of candidate design points, and m is the number of parameters

w

the vector of non-negative real numbers of length n representing the design

X

an n times k matrix of coordinates of design points

w.pool

a vector with components from the set "sum", "min", "max", "mean", "median", "0" that determines various "pools" of the design weights along the projections defined by the coordinates provided by X

w.color

the color string for plotting the design weight (from the standard list of R colors)

w.size

the size of the characters/balls that represent the non-zero design weights

w.pch

the numerical code of the characters used to plot the non-zero design weights

w.cex

the size of the text labels representing the magnitudes of the design weights

w.lim

a threshold fraction of the total design weight to plot the labels

crit

the optimality criterion. Possible values are "D", "A", "I", "C"

h

a non-zero vector of length m corresponding to the coefficients of the linear parameter combination of interest. If crit is not "C" then h is ignored. If crit is "C" and h=NULL then h is assumed to be c(0,...,0,1)

dd.pool

a vector with components from the set "sum", "min", "max", "mean", "median", "0" that determines various "pools" of the directional derivatives along the projections defined by the coordinates provided by X

dd.color

the color string for plotting the directional derivatives (from the standard list of R colors)

dd.size

the size of the characters that represent the directional derivatives

dd.pch

the numerical code of the character used to plot the directional derivatives

asp

the aspect ration of the axes

main.lab

the main title of the plot

y.lab

the label of the y axis

return.pools

Return the pooled values?

echo

Print the call of the function?

Author

Radoslav Harman, Lenka Filova

Details

This function performs a simple visualization of some aspects of an experimental design. It visualizes (the selected pools of) the design weights and (the selected pools of) the directional derivative. The type of graph depends on the number of columns in X.

See Also

od_pool, od_print