preview_pal {DOYPAColors} | R Documentation |
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)
Arguments
palette |
A character string specifying the name of the palette to use. |
seed |
An optional seed for reproducibility of random numbers. |
Value
A 'ggplot' object with multiple plots arranged in a grid, showcasing the color palette in different visualizations.
Examples
# Preview a DOYPAColors palette with multiple plots
preview_pal(palette = "buzz")
[Package DOYPAColors version 0.0.2 Index]