Learn R Programming

sits (version 1.2.0)

sits_colors_show: Show one SITS color palette

Description

Shows a barplot with the requested color palette

Usage

sits_colors_show(name, n_colors = 32)

Value

Called for side effects

Arguments

name

Name of sits color palette

n_colors

Number of colors to be displayed

Author

Gilberto Camara, gilberto.camara@inpe.br

Examples

Run this code
if (sits_run_examples()) {
    # show the names of the colors supported by SITS
    sits_color_names()
    # show a color palette
    sits_colors_show("Blues", n_colors = 16)
}

Run the code above in your browser using DataLab