show_cpt returns a color matrix which prints and show the colors

show_cpt(x, label = TRUE)

Arguments

x

character; names of the cpt gradients.

label

Logical, to show labels or not.

Value

names color matrix

Examples

{
library(cptcity)
show_cpt(find_cpt("radar"))
}
#> Creating  2 3 matrix