R Language Color schemes for graphics A handy function to glimse a vector of colors

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Example

Quite often there is a need to glimpse the chosen color palette. One elegant solution is the following self defined function:

color_glimpse <- function(colors_string){
        n <- length(colors_string)
        hist(1:n,breaks=0:n,col=colors_string)
}

An example of use

color_glimpse(blues9)

pal



Got any R Language Question?