Learn R Programming

upsetjs (version 1.11.1)

chartLayout: specify the chart layout

Description

specify the chart layout

Usage

chartLayout(
  upsetjs,
  height.ratios = NULL,
  width.ratios = NULL,
  padding = NULL,
  bar.padding = NULL,
  dot.padding = NULL,
  numerical.scale = NULL,
  band.scale = NULL,
  set.label.alignment = NULL,
  set.max.scale = NULL,
  combination.max.scale = NULL
)

Value

the object given as first argument

Arguments

upsetjs

an object of class upsetjs or upsetjs_proxy

height.ratios

a vector of length 2 for the ratios between the combination and set plot, e.g. c(0.6, 0.4)

width.ratios

a vector of length 3 for the ratios between set, label, and combination plot, e.g. c(0.3,0.2,0.5)

padding

padding around the plot

bar.padding

padding ratio (default 0.1) for the bar charts

dot.padding

padding factor (default 0.7) for the dots

numerical.scale

numerical scale: linear (default) or log

band.scale

band scale: band (default)

set.label.alignment

set label alignment: left, center (default), right

set.max.scale

maximum value for the set scale

combination.max.scale

maximum value for the combination scale

Examples

Run this code
upsetjs() %>%
  fromList(list(a = c(1, 2, 3), b = c(2, 3))) %>%
  chartLayout(width.ratios = c(0.4, 0.2, 0.4))

Run the code above in your browser using DataLab