set_scale: Set scale for 'timelines-chart'

View source: R/timelines-set.R

set_scaleR Documentation

Set scale for timelines-chart

Description

Set scale for timelines-chart

Usage

set_scale(
  timelines,
  palette = "Viridis",
  domain = NULL,
  discrete = NULL,
  data_label = NULL,
  label = NULL
)

Arguments

timelines

A timelines-chart htmlwidget object.

palette

Color palette to use for continuous or colors vector.

domain

Range of values for continuous data.

discrete

Whether the segment data color values are categorical (false) or continuouss (true).

data_label

Units of z data. Used in the tooltip descriptions.

label

Color scale label. Only applicable to quantitative z scales.


dreamRs/timelineschart documentation built on Oct. 6, 2022, 2:13 p.m.