chartLayout | R Documentation |
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 )
upsetjs |
an object of class |
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 |
the object given as first argument
upsetjs() %>% fromList(list(a = c(1, 2, 3), b = c(2, 3))) %>% chartLayout(width.ratios = c(0.4, 0.2, 0.4))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.