Learn R Programming

qualityTools (version 1.31.1)

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
an object of class facDesign or a vector x
fun
function to use for the calculation of the interactions.
col
vector of colors for the plot
y
if fdo is a vector, interactionPlot defaults to interaction.plot if y is a vector too.
response
response variable
main
main
...
further graphical parameters

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

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