View source: R/sets_labelling.R
sets_labelling | R Documentation |
Sets labelling parameters for the Smallset Timeline.
sets_labelling(labelCol = NULL, labelColDif = NULL)
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. |
Passed to labelling
in Smallset_Timeline.
Returns a list with two elements (the labelling parameters).
# 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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.