mixexp (version 1.2.7)

DesignPoints: This function plots design points and or constraints in the simplex mixture space, given a data frame containing the design or vextors x, y, and z of the same length that contain the mixture components in the design.

Description

This function plots design points and or constraints in the simplex mixture space. It calls the function MixturePlot that does the actual plotting.

Usage

DesignPoints(des = NULL,nmxcmp=3, x = NULL, y = NULL, z = NULL,x1lower=0,x1upper=0,
                         x2lower=0, x2upper=0, x3lower=0,x3upper=0,
                         cornerlabs = c("x3","x2","x1"),
                         axislabs=c("x1","x2","x3"),pseudo=FALSE)

Arguments

des

data frame containing x1 x2 and x3 coordinates of data points to be plotted

nmxcmp

interger indicating the number of mixture components in the design

x

vector of x3 coordinates of design points to be plotted

y

vector of x2 coordinates of design points to be plotted

z

vector of x1 coordinates of design points to be plotted

x1lower

lower constraint on x1

x1upper

upper constraint on x1

x2lower

lower constraint on x2

x2upper

upper constraint on x2

x3lower

lower constraint on x3

x3upper

upper constraint on x3

axislabs

This is a vector of text labels for the x1, x2 and x3 axis.

cornerlabs

This is a vector of text labels for the x1, x2 and x3 vertices.

pseudo

logical variable, when TRUE plot is made in pseudo component space bounded by the lower constraints of each component.

References

1. Piepel, G. F. "Programs for Generating Extreme Vertices and Centroids of Linearly Consrtained Experimental Regions" Journal of Quality Technology, Vol 20, No. 2, pp. 125-139, 1988.

2. "John Lawson, Cameron Willden (2016).", "Mixture Experiments in R Using mixexp.", "Journal of Statistical Software, Code Snippets, 72(2), 1-20.", "doi:10.18637/jss.v072.c02"

Examples

Run this code
# NOT RUN {
dat<-SCD(3)
DesignPoints(des=dat)

x1<-c(1,0,0,.5,.5, 0,.33333)
x2<-c(0,1,0,.5,0,.5,.33333)
x3<-c(0,0,1,0,.5,.5,.33333)
DesignPoints(x=x3,y=x2,z=x1)

dat<-data.frame(x1,x2,x3)
DesignPoints(des=dat)

# }

Run the code above in your browser using DataLab