Description Usage Arguments Value See Also Examples
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)
.
1 |
palette |
Vector The output of |
A plot of the colors extracted from the image
1 2 | img <- jpeg::readJPEG(system.file("img", "Rlogo.jpg", package="jpeg"))
display_palette(image_palette(img, n=5))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.