Learn R Programming

DOYPAColors (version 0.0.2)

preview_pal: Preview a Single Color Palette

Description

This function generates a visual preview of a DOYPAColors palette with multiple plots. It includes a direct palette preview, a scatter plot, a bar plot, and a heatmap, each using the specified palette.

Usage

preview_pal(palette, seed = NULL)

Value

A `ggplot` object with multiple plots arranged in a grid, showcasing the color palette in different visualizations.

Arguments

palette

A character string specifying the name of the palette to use.

seed

An optional seed for reproducibility of random numbers.

Examples

Run this code
# Preview a DOYPAColors palette with multiple plots
preview_pal(palette = "buzz")

Run the code above in your browser using DataLab