Learn R Programming

qualityTools (version 1.31.1)

effectPlot: Main Effect Plots

Description

A main effect plot is created for designs of type taguchiDesign and facDesign.

Usage

effectPlot(object, factors, fun = mean, single = FALSE, points = FALSE, classic = FALSE, axes = TRUE, lty, xlab, ylab, main, ylim, ...)

Arguments

object
a facDesign or taguchiDesign object
factors
for which factor is the effectPlot to be created
fun
a function for the construction of the effectPlot such as mean, link{median}
single
if TRUE device region can be set up using for instance par(mfrow = c(2,2))
points
if TRUE points are shown in addition to fun values
axes
TRUE by default
classic
TRUE by default to create an effectPlot as depicted in most textbooks
lty
line type used
xlab
label for x-axis
ylab
label for y-axis
main
title
ylim
limits for y-axis
...
further graphical parameters

Details

effectPlot uses an altered version of the base function interaction.plot to draw each effectPlot.

See Also

interactionPlot, paretoPlot,facDesign, response,normalPlot

Examples

Run this code
#effectPlot for a 2^k factorial design
fdo = facDesign(k = 3)
response(fdo) = rnorm(8)  #set response with generic response function
effectPlot(fdo)

#effectPlot for a taguchiDesign
tdo = taguchiDesign("L9_3")
response(tdo) = rnorm(9)
effectPlot(tdo, points = TRUE, col = 2, pch = 16, lty = 3)

Run the code above in your browser using DataLab