Description Usage Arguments Examples
plot_colors
creates a treemap of colors extracted from Windows BMP, JPEG, PNG, TIFF, and SVG format images with
the get_colors
function.
1 | plot_colors(data, sort = "color", labels = TRUE)
|
data |
a |
sort |
specifies the sorting of the treemap rectangles. By default ( |
labels |
by default, rectangles that are sufficiently large are provided with a label. If |
1 2 3 4 5 6 | # Extract all colors
pic1 <- system.file("extdata", "pic1.png", package = "colorfindr")
col <- get_colors(pic1)
# Plot image composition
plot_colors(col)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.