Learn R Programming

sommer (version 3.6)

my.colors: All typical colors in R easy to access.

Description

This dataset is just a vector of the different colors in R from the pdf available at CRAN. Just to make easier the access to them.

Usage

data("my.colors")

Arguments

Format

The format is: chr "my.colors"

References

Covarrubias-Pazaran G (2016) Genome assisted prediction of quantitative traits using the R package sommer. https://cran.rstudio.com/web/packages/sommer/

See Also

The core function of the package mmer

Examples

Run this code
# NOT RUN {
####=========================================####
####=========================================####
data(my.colors)
set.seed(1234)
palette <- sample(my.colors, 16) # sample some
palette2 <- transp(palette) # make them transparent
ma <- matrix(1:16,4,4)
layout(matrix(1:2,1,2))
image(ma, col=palette)
image(ma, col=palette2)
layout(matrix(1,1,1))
####=========================================####
####=========================================####
# }

Run the code above in your browser using DataLab