This function is a tool for easily specifying the visuals
argument of
makeDataReport
. Note that only a single visual function can
be provided for each variable type. If more than one is supplied, only
the first one is used. The default is to use a single visual function for all
variable types (as specified in the argument all
), but class-specific choices
of visual functions can also be used. Note that class-specific arguments overwrites
the contents of all
. Note that all available visual function options can be inspected
by calling allVisualFunctions()
.
setVisuals(character = NULL, factor = NULL, labelled = NULL, numeric = NULL, integer = NULL, logical = NULL, Date = NULL, all = "standardVisual")
character | A function name (character string) to be used as the visual function for character
variables. If |
---|---|
factor | A function name (character string) to be used as the visual function for factor
variables. If |
labelled | A function name (character string) to be used as the visual function for labelled
variables. If |
numeric | A function name (character string) to be used as the visual function for numeric
variables. If |
integer | A function name (character string) to be used as the visual function for integer
variables. If |
logical | A function name (character string) to be used as the visual function for logical
variables. If |
Date | A function name (character string) to be used as the visual function for Date
variables. If |
all | A function name (character string) to be used as the visual function for all variables. |
A list with one entry for each data class supported by makeDataReport
. Each
entry then contains a character string with a function name that is to be called as the visual
function for that variable type.
#Set visual type to basicVisual for all variable types: setVisuals(all = "basicVisual")#> $character #> [1] "basicVisual" #> #> $factor #> [1] "basicVisual" #> #> $labelled #> [1] "basicVisual" #> #> $numeric #> [1] "basicVisual" #> #> $integer #> [1] "basicVisual" #> #> $logical #> [1] "basicVisual" #> #> $Date #> [1] "basicVisual" #>#Used in a call to makeDataReport():# NOT RUN { data(toyData) makeDataReport(toyData, visuals = setVisuals(all = "basicVisual"), replace = TRUE) # }