Learn R Programming

Nippon (version 0.2.2)

nippon.palette: Switch the color palette to JIS colors

Description

nippon.palette switches the color palette to the Japanese Industrial Standard (JIS) color palette, replacing with the corresponding color in the default palette.

Usage

nippon.palette()

Arguments

Value

  • an optional character vector

Details

JIS common color names (JIS Z 8102:2001) were defined by JIS as 269 colors. These colors are different from usual color in computers. For example, red is #BE0032 in JIS color but #FF0000 in usual.

References

JIS Z 8102:2001 (Names of non-luminous object colours) K. Seino and I. Shimamori. Shikimeijiten. Tokyo:Sinkigensha, 2005.

Examples

Run this code
op <- par(mfrow=c(1,2))
palette("default")
n <- print(palette())
pie(rep(1,8),col=1:8,label=n)
nippon.palette()
pie(rep(1,8),col=1:8,label=n)
palette("default")
par(op)

Run the code above in your browser using DataLab