Learn R Programming

sharpshootR (version 2.3)

colorMixtureVenn: Create a Venn Diagram of Simulated Color Mixtures

Description

Create a Venn Diagram of Simulated Color Mixtures

Usage

colorMixtureVenn(
  chips,
  w = rep(1, times = length(chips))/length(chips),
  mixingMethod = "exact",
  ellipse = FALSE,
  labels = TRUE,
  names = FALSE,
  sncs = 0.85
)

Value

nothing returned, function is called to create graphical output

Arguments

chips

character vector of standard Munsell color notation (e.g. "10YR 3/4")

w

vector of proportions, can sum to any number, must be same length as chips

mixingMethod

approach used to simulate a mixture: see aqp::mixMunsell() for details

ellipse

logical, use alternative ellipse-style (4 or 5 colors only)

labels

logical, print mixture labels

names

logical, print names outside of the "sets"

sncs

scaling factor for set names

Examples

Run this code

if (FALSE) {
if(requireNamespace("venn") & requireNamespace("gower")) {

chips <- c('10YR 8/1', '2.5YR 3/6', '10YR 2/2')
names(chips) <- c("tan", "dark red", "dark brown")

colorMixtureVenn(chips)
colorMixtureVenn(chips, names = TRUE)

colorMixtureVenn(chips, w = c(1, 1, 1), names = TRUE)
colorMixtureVenn(chips, w = c(10, 5, 1), names = TRUE)

}
}


Run the code above in your browser using DataLab