scale_color_kg {KaradaColor} | R Documentation |
Use color scales on 'ggplot2'
Description
scale_color_kg Use color palette on 'ggplot2' colors.
Usage
scale_color_kg(
name = "Sapporo_Sta",
alpha = 1,
na.value = "red",
discrete = TRUE
)
scale_colour_kg(
name = "Sapporo_Sta",
alpha = 1,
na.value = "red",
discrete = TRUE
)
Arguments
name |
color palette name. (default: |
alpha |
The alpha transparency. Numbers range from 0-1. see argument
alpha in |
na.value |
Color of missing value. |
discrete |
Generate a discrete palette. ( |
Value
Create a user defined color palette for ggplot2.
Examples
library("ggplot2")
ggplot(data = diamonds, aes(x = cut, y = price,
color = cut, fill = cut)) +
geom_boxplot() +
scale_color_kg(name = "Hanamushiro", alpha = 0.2) +
scale_fill_kg(name = "Hokkaido_Sky", alpha = 0.2) +
theme_dark()
[Package KaradaColor version 0.1.5 Index]