sets_labelling {smallsets} | R Documentation |
Sets labelling
Description
Sets labelling parameters for the Smallset Timeline.
Usage
sets_labelling(labelCol = NULL, labelColDif = NULL)
Arguments
labelCol |
Either "lighter" or "darker" for colour of column names and printed data, in comparison to tile colours. Default is "darker". |
labelColDif |
Value between 0-1 determining how much lighter or darker. Default is .5. |
Details
Passed to labelling
in Smallset_Timeline.
Value
Returns a list with two elements (the labelling parameters).
Examples
# labels and printed data are black
Smallset_Timeline(
data = s_data,
code = system.file("s_data_preprocess.R", package = "smallsets"),
printedData = TRUE,
truncateData = 4,
labelling = sets_labelling(labelCol = "darker", labelColDif = 1))
# labels and printed data are midpoint between tile colour and white
Smallset_Timeline(
data = s_data,
code = system.file("s_data_preprocess.R", package = "smallsets"),
colours = 3,
printedData = TRUE,
truncateData = 4,
labelling = sets_labelling(labelCol = "lighter", labelColDif = .5))
[Package smallsets version 2.0.0 Index]