powered by
Create palettes from an image
image2palettes( array, resize = 4, unique = FALSE, scale = F, k = 3, lcols = 7, plsaxis = 1, cex = 5, cext = 0.5 )
paletteslist list: color palettes arranged in a list
array: rgb array
numeric: desidered resize factor
logical: if TRUE each color is counted once
logical: if TRUE (color) variables are scaled
numeric: desidered number of clusters (i.e., number of palettes)
numeric: length of the color vector of each palette
numeric: desidered PLS axis
numeric: size of colored squares
numeric: size of color names
Antonio Profico
if (FALSE) { require(jpeg) require(Morpho) data("Altapic") image2palettes(Altapic,resize=1,unique=T,scale=T,k=3,lcols=5,plsaxis=1,cext=0.5) }
Run the code above in your browser using DataLab