This is a simple wrapper around getShapePalette, with different defaults:
inclusion of missing values by
default (includeNA set to TRUE)
the extraction of shapes as text
by default (asText set to TRUE)
getShapePalettePatientProfile(..., includeNA = TRUE, asText = TRUE)Vector of shapes,
named with the elements in x if x is specified.
Arguments passed on to clinUtils::getShapePalette
nInteger of length 1, number of elements in palette.
xVector with elements used for palette.
If factor, the levels are used, otherwise the unique elements of the vector.
Missing values are automatically removed, excepted if
includeNA is set to TRUE.
paletteA vector of custom shapes,
or a function returning this vector from a specific
number of shapes.
The vector should be a character if asText is set to TRUE.
Default is the clinShapes shape palette,
or clinShapesText if asText is set to TRUE.
Logical (TRUE by default),
should NA elements be retained in the palette in case
x is specified?
Logical (TRUE by default), should the palette be expressed as integer (base R plot and ggplot2 compatible) or in text format (e.g. required if combined with unicode symbols in ggplot2)?
Laure Cougnaud
getShapePalette