有不同样本的多个变量x1,x2,x3
faces(x[c("x1","x2","x3")])
或者直接用help()可以查到下面这个
faces(xy, which.row, fill = FALSE, face.type = 1, nrow.plot, ncol.plot,
scale = TRUE, byrow = FALSE, main, labels, print.info = TRUE,
na.rm = FALSE, ncolors = 20, col.nose = rainbow(ncolors),
col.eyes = rainbow(ncolors, start = 0.6, end = 0.85),
col.hair = terrain.colors(ncolors), col.face = heat.colors(ncolors),
col.lips = rainbow(ncolors, start = 0, end = 0.2),
col.ears = rainbow(ncolors, start = 0, end = 0.2), plot.faces = TRUE)
语句的解释
xy xy data matrix, rows represent individuals and columns variables
which.row defines a permutation of the rows of the input matrix
fill if(fill==TRUE), only the first nc attributes of the faces are transformed, nc is the number of columns of xy
face.type an integer between 0 and 2 with the meanings: 0 = line drawing faces, 1 = the elements of the faces are painted, 2 = Santa Claus faces are drawn
nrow.plot number of columns of faces on graphics device
ncol.plot number of rows of faces
scale if(scale==TRUE), variables will be normalized
byrow if(byrow==TRUE), xy will be transposed
main title
labels character strings to use as names for the faces
print.info if TRUE information about usage of variables for face elements are printed
na.rm if TRUE 'NA' values are removed otherwise exchanged by mean of data
plot.faces if FALSE no face is plotted
x an object of class faces computed by faces
x.pos x coordinates of positions of faces
y.pos y coordinates of positions of faces
width width of the faces
height height of the faces
ncolors number of colors in the palettes for painting the elements of the faces
col.nose palette of colors for painting the nose
col.eyes palette of colors for painting the eyes
col.hair palette of colors for painting the hair
col.face palette of colors for painting the face
col.lips palette of colors for painting the lips
col.ears palette of colors for painting the ears