Skip to contents

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.

Value

Returns a list with two elements (the labelling parameters).

Details

Passed to labelling in Smallset_Timeline.

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))