Learn R Programming

upsetjs (version 1.3.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
)

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)

Value

the object given as first argument

Examples

Run this code
# NOT RUN {
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