View source: R/image2palettes.r
| image2palettes | R Documentation | 
Create palettes from an image
image2palettes( array, resize = 4, unique = FALSE, scale = F, k = 3, lcols = 7, plsaxis = 1, cex = 5, cext = 0.5 )
| array | array: rgb array | 
| resize | numeric: desidered resize factor | 
| unique | logical: if TRUE each color is counted once | 
| scale | logical: if TRUE (color) variables are scaled | 
| k | numeric: desidered number of clusters (i.e., number of palettes) | 
| lcols | numeric: length of the color vector of each palette | 
| plsaxis | numeric: desidered PLS axis | 
| cex | numeric: size of colored squares | 
| cext | numeric: size of color names | 
paletteslist list: color palettes arranged in a list
Antonio Profico
## Not run: 
require(jpeg)
require(Morpho)
data("Altapic")
image2palettes(Altapic,resize=1,unique=T,scale=T,k=3,lcols=5,plsaxis=1,cext=0.5)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.