Last data update: 2014.03.03

R: Discrete with four levels color dataset.
Discrete4R Documentation

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(grid)
library(lattice)
Discrete4 <- brewer.pal(n=12, "Paired")[c(6,2,5,1)]
Discrete4
save(Discrete4, file="Discrete4.rda")
##
grid.newpage()
draw.key(list(text=list(c("Discrete4")),
              rectangles=list(col=Discrete4,
                              cex=1.5, size=8, height=.7, border=FALSE),
              columns=4,
              between=1,
              padding.text=8),
         draw=TRUE)

## End(Not run)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(HH)
Loading required package: lattice
Loading required package: grid
Loading required package: latticeExtra
Loading required package: RColorBrewer
Loading required package: multcomp
Loading required package: mvtnorm
Loading required package: survival
Loading required package: TH.data
Loading required package: MASS

Attaching package: 'TH.data'

The following object is masked from 'package:MASS':

    geyser

Loading required package: gridExtra
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/HH/Discrete4.color.Rd_%03d_medium.png", width=480, height=480)
> ### Name: Discrete4
> ### Title: Discrete with four levels color dataset.
> ### Aliases: Discrete4
> ### Keywords: datasets
> 
> ### ** Examples
> 
> data(Discrete4)
> ## Not run: 
> ##D library(RColorBrewer)
> ##D library(grid)
> ##D library(lattice)
> ##D Discrete4 <- brewer.pal(n=12, "Paired")[c(6,2,5,1)]
> ##D Discrete4
> ##D save(Discrete4, file="Discrete4.rda")
> ##D ##
> ##D grid.newpage()
> ##D draw.key(list(text=list(c("Discrete4")),
> ##D               rectangles=list(col=Discrete4,
> ##D                               cex=1.5, size=8, height=.7, border=FALSE),
> ##D               columns=4,
> ##D               between=1,
> ##D               padding.text=8),
> ##D          draw=TRUE)
> ## End(Not run)
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>