| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/cvd_image.R |
| 3 |
\name{cvd_emulator} |
| 4 |
\alias{cvd_emulator} |
| 5 |
\title{Graphical User Interface to Check Images for Color Constraints} |
| 6 |
\usage{ |
| 7 |
cvd_emulator(file, overwrite = FALSE, shiny.trace = FALSE) |
| 8 |
} |
| 9 |
\arguments{ |
| 10 |
\item{file}{If not set, an interactive GUI will be started. If \code{x} is of type |
| 11 |
\code{character} it has to be the full path to an image of type png or jpg/jpeg. |
| 12 |
The image will be converted and stored on disc, no GUI.} |
| 13 |
|
| 14 |
\item{overwrite}{\code{logical}. Only used if \code{file} is provided. Allow the |
| 15 |
function to overwrite files on disc if they exist.} |
| 16 |
|
| 17 |
\item{shiny.trace}{\code{logical}. Can be set to \code{TRUE} for more verbose |
| 18 |
output when the GUI is started (development flag).} |
| 19 |
} |
| 20 |
\description{ |
| 21 |
A graphical user interface (GUI) to check an existing jpg/png image for (possible) |
| 22 |
color constraints. The image will be converted to protanope vision, deuteranope vision, |
| 23 |
and a desaturated version (monochromatic vision). |
| 24 |
Allows a rapid check whether the colors used in the image show some |
| 25 |
constraints with respect to color deficiency or color blindness. |
| 26 |
} |
| 27 |
\references{ |
| 28 |
Zeileis A, Fisher JC, Hornik K, Ihaka R, McWhite CD, Murrell P, Stauffer R, Wilke CO (2020). |
| 29 |
\dQuote{colorspace: A Toolbox for Manipulating and Assessing Colors and Palettes.} |
| 30 |
\emph{Journal of Statistical Software}, \bold{96}(1), 1--49. \doi{10.18637/jss.v096.i01} |
| 31 |
} |
| 32 |
\author{ |
| 33 |
Reto Stauffer, Claus O. Wilke, Achim Zeileis |
| 34 |
} |