Skip to contents

Create a donut chart of the top n colors in the image (number of colors specified by the user)

Usage

donut(img_url, num_clrs, plot_show = TRUE)

Arguments

img_url

string of the url of the image that you want to pull colors from

num_clrs

int of the number of colors you want to pull from the image

plot_show

if TRUE will print the plot, default TRUE

Value

a ggplot donut chart of the n most common colors in the image (user specified)

Examples

donut("https://i.imgur.com/s9egWBB.jpg", 5, plot_show = TRUE)
#> Warning: did not converge in 20 iterations