kg_plot_color {KaradaColor} | R Documentation |
Draw the color data
Description
kg_plot_color
This function draw the color data.
Usage
kg_plot_color(name = "Sapporo_Sta", color = NULL, n = 5, showcode = TRUE)
Arguments
name |
Color palette color palette name. (default: |
color |
Color data. Precedence over name except NULL. (default: NULL) |
n |
Number of colors to create. |
showcode |
Add a color code to the plot. |
Value
Vector containing a hex color code representation for the chosen palette
Examples
#Draw the color palette of the KaradaColor
kg_plot_color(name = "Amanohashidate", n = 5, showcode = FALSE)
#Draw the KG_create_cc command
kg_plot_color(color = kg_create_cc(c("#ff48ac", "yellow")), showcode = TRUE)
#Draw the KG_create_tc command
kg_plot_color(color = kg_create_tc("yellow"), showcode = TRUE)
#Color data
kg_plot_color(color = c("gray"), showcode = FALSE)
[Package KaradaColor version 0.1.5 Index]