Learn R Programming

qualityTools (version 1.49)

interactionPlot: interactionPlot

Description

Display effects of an object of class facDesign in a line plot.

Usage

interactionPlot(fdo = NULL, y = NULL, response = NULL, fun = mean, main, col = 1:2, ...)

Arguments

fdo
needs to be an object of class facDesign or a vector x.
fun
function to use for the calculation of the interactions, as mean,median,etc.
col
vector of colors for the plot. Single colors can be given as character strings or numeric values.
y
if fdo is a vector, interactionPlot() defaults to interaction.plot from package stats if y is a vector too.
response
response variable.
main
an overall title for the plot: see title.
...
further graphical parameters: see par.

Value

  • none

Details

interactionPlot() displays interactions for an object of class facDesign (i.e. 2^k full or 2^k-p fractional factorial design). Parts of the original interactionPlot were integrated.

See Also

factors fracDesign http://www.user.tu-berlin.de/kalicete/qualityTools/S5.html#SS1

Examples

Run this code
vp = fracDesign(k = 3, replicates = 2)                             #NA in response column and 2 replicates per factor combination
y = 4*vp[,1] -7*vp[,2] + 2*vp[,2]*vp[,1] + 0.2*vp[,3] + rnorm(16)  #generate some data
response(vp) = y
interactionPlot(vp)                                                #show effects and interactions (nothing significant expected)

Run the code above in your browser using DataLab