View source: R/colorMixtureVenn.R
colorMixtureVenn | R Documentation |
Create a Venn Diagram of Simulated Color Mixtures
colorMixtureVenn(
chips,
w = rep(1, times = length(chips))/length(chips),
mixingMethod = "exact",
ellipse = FALSE,
labels = TRUE,
names = FALSE,
sncs = 0.85
)
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 |
mixingMethod |
approach used to simulate a mixture: see |
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 |
nothing returned, function is called to create graphical output
## Not run:
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)
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.