简体   繁体   中英

need cube plot for 2 factors factorial design in R

Is there are any R package that can produce cube plots for 2 factors? I want something similar to the first plot at the end of this page http://www.processma.com/resource/factorial_plots.htm

It is possible to obtain such plots in Minitab.

In the package FrF2 there is the command cubeplot but only for 3 factors.

Of course I can use 2 identical factors, but want images with nice squares(instead of cubes).

You can use cubePlot from FrF2 package. It produces a cube plot for the combined effect of three factors. Here an example :

data(BM93.e3.data)  #from BsMD
iMdat <- BM93.e3.data[1:16,2:10]  #only original experiment
colnames(iMdat) <- c("MoldTemp","Moisture","HoldPress","CavityThick","BoostPress",
                     "CycleTime","GateSize","ScrewSpeed", "y")
iM.lm <- lm(y ~ (.)^2, data = iMdat)
cubePlot(iM.lm, "MoldTemp", "HoldPress", "BoostPress")

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM