# DesignPoints: This function plots design points and or constraints in the... In mixexp: Design and Analysis of Mixture Experiments

## 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

 ```1 2 3 4 5``` ``` 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.

## Note

This function calls MixturePlot. If either des and x,y,z are missing no design points will be plotted, and if x1lower, x1upper, etc. are all zero no constraints will be plotted. If there are more than 3 columns of mixture components in des, only the first 3 will be plotted ignoring the others.

## Author(s)

John S. Lawson [email protected]

## 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

 ``` 1 2 3 4 5 6 7 8 9 10``` ```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) ```

mixexp documentation built on May 2, 2019, 5:22 p.m.