faces2(mat, which = 1:ncol(mat), labels = rownames(mat),
nrows = ceiling(nrow(mat)/ncols), ncols = ceiling(sqrt(nrow(mat))),
byrow = TRUE, scale = c("columns", "all", "center", "none"),
fill = c(0.5, 0.5, 1, 0.5, 0.5, 0.3, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5,
0.5, 0.5, 0.5, 0.5, 1, 0.5), ...)
scale
option controls how scaling will be
done on mat
: "columns" scales each column to range from 0 to
1, "all" scales the entire dataset to vary from 0 to 1, "center"
scales each column so that the mean of the column becomes 0.5 and all
other values are between 0 and 1, and "none" does no scaling assuming
that the data has already been scaled.faces
faces2(matrix( runif(18*10), nrow=10), main='Random Faces')
Run the code above in your browser using DataLab