Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

Discrete4.color

Discrete with four levels color dataset.


Description

Discrete with four levels color dataset. These colors look like four distinct colors when run through the vischeck simulator to see how they look for the three most common color vision deficiencies: Deuteranope, Protanope, Tritanope.

Usage

data("Discrete4")

Format

The format is: chr [1:4] "#E31A1C" "#1F78B4" "#FB9A99" "#A6CEE3"

Details

4x1 color scheme

Examples

data(Discrete4)
## Not run: 
library(RColorBrewer)
library(lattice)
Discrete4 <- brewer.pal(n=12, "Paired")[c(6,2,5,1)]
Discrete4
## save(Discrete4, file="Discrete4.rda") ## data(Discrete4, package="HH")
##
barchart(~ 1:4, col=Discrete4, lwd=0, origin=0, horizontal=FALSE,
         xlab="Colors", scales=list(x=list(labels=Discrete4), y=list(labels=NULL)),
         main=paste("These colors look like four distinct colors when run through",
                    "the vischeck simulator to see how they look for the three most",
                    "common color vision deficiencies: Deuteranope, Protanope, Tritanope.",
                    sep="\n"))

## End(Not run)

HH

Statistical Analysis and Data Display: Heiberger and Holland

v3.1-43
GPL (>= 2)
Authors
Richard M. Heiberger
Initial release
2020-11-27

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.