display_palette {RImagePalette} | R Documentation |
Display color palette
Description
Displays the created palette as a barchart with axis labels
representing hex values of the colors. A more attractive method
for doing so would be to use show_cols()
from
library(scales)
.
Usage
display_palette(palette)
Arguments
palette |
Vector The output of |
Value
A plot of the colors extracted from the image
See Also
scales::show_cols()
Examples
img <- jpeg::readJPEG(system.file("img", "Rlogo.jpg", package="jpeg"))
display_palette(image_palette(img, n=5))
[Package RImagePalette version 0.1.1 Index]