powered by
specify the chart layout
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 )
the object given as first argument
an object of class upsetjs or upsetjs_proxy
upsetjs
upsetjs_proxy
a vector of length 2 for the ratios between the combination and set plot, e.g. c(0.6, 0.4)
a vector of length 3 for the ratios between set, label, and combination plot, e.g. c(0.3,0.2,0.5)
padding around the plot
padding ratio (default 0.1) for the bar charts
padding factor (default 0.7) for the dots
numerical scale: linear (default) or log
band scale: band (default)
set label alignment: left, center (default), right
maximum value for the set scale
maximum value for the combination scale
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