Learn R Programming

upsetjs (version 1.11.1)

chartLabels: specify chart labels

Description

specify chart labels

Usage

chartLabels(
  upsetjs,
  title = NULL,
  description = NULL,
  combination.name = NULL,
  combination.name.axis.offset = NULL,
  set.name = NULL,
  set.name.axis.offset = NULL,
  bar.label.offset = NULL
)

Value

the object given as first argument

Arguments

upsetjs

an object of class upsetjs or upsetjs_proxy

title

the chart title

description

the chart description

combination.name

the label for the combination chart

combination.name.axis.offset

the offset of the combination label from the axis in pixel

set.name

the label for the set chart

set.name.axis.offset

the offset of the set label from the axis in pixel

bar.label.offset

the offset of the bar label from the bar in pixel

Examples

Run this code
upsetjs() %>%
  fromList(list(a = c(1, 2, 3), b = c(2, 3))) %>%
  chartLabels(set.name = "Test")

Run the code above in your browser using DataLab