pde | R Documentation |
Vary two parameters in a recipe and model the ideal recipe.
pde(
x,
y,
z,
xlim = c(),
ylim = c(),
zlim = c(),
dim = 45,
xlab = "",
ylab = "",
zlab = "",
main = "3D plot",
col = c("blue", "cyan", "yellow", "red", "#990000"),
alpha = 0.1,
pch = 16,
col.pt = "blue",
cex.pt = 6,
mode = 1
)
x |
x values of first parameter |
y |
y values of second parameter |
z |
evaluation of the 6 recipes |
xlim |
manual x limitation |
ylim |
manual y limitation |
zlim |
manual z limitation |
dim |
resolution of the modelisation |
xlab |
x title |
ylab |
y title |
zlab |
z title |
main |
main |
col |
color of th modelisation |
alpha |
transparency |
pch |
cf. plot function |
col.pt |
color of points |
cex.pt |
length of points |
mode |
Two graphical modes (1 or 2) |
: By varying 2 parameters, we can obtain different recipes that we will evaluate. A 3D modeling will thus allow to anticipate what would have been the ideal parameterization to obtain the best recipe.
#Example 1
x1 <- c(0,2,3,4,5,6) # sugar
y1 <- c(0,2,1,0,4,4) # salt
hedo <- c(0,3,3,2,0,0) # hedonique taste
pde(x1,y1,hedo,xlab="Sucre",ylab="Sel",zlab="Note hedonique",main="Receipe",dim=30,mode=1)
#Example 2
x1 <- c(0,2,3,4,4,0,1,3,2,0,2) ; # sucre
y1 <- c(0,2,1,0,4,4,3,3,0,2,4) ; # sel
hedo <- c(0,3,3,0,0,0,3,5,0,0,0) ; # note hédonique obtenue en goûtant le produit
pde(x1,y1,hedo,xlab="Sucre",mode=2,pch=c(10:16),alpha=0.5,
ylab="Sel",zlab="Note hédonique",main="Receipe",dim=50)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.