upset_plot: Create an upset graph, inspired from an UpsetR package, show...

View source: R/upset.R

upset_plotR Documentation

Create an upset graph, inspired from an UpsetR package, show associations

Description

re-implementation of the graph to separate association computation and vizualization

Usage

upset_plot(
  data,
  sets,
  n.max = 40,
  point_size = 3,
  name_size_scale = 1,
  title = NULL,
  subtitle = NULL,
  caption = NULL,
  opts = list()
)

Arguments

data

data.frame() with data for each sets

sets

list of column names for each variable in sets

n.max

number of top obs to keep, (all if na)

point_size

size of point in intersection plot

name_size_scale

scale of labels size in intersection plot

title

title of the plot

subtitle

subtitle of the plot

caption

caption of the plot

opts

options for freq plot

Options

General options : - theme: add the theme to the plot - freq: frequency plot option - matrix: matrix plot option

Frequency plot options

bar.color

bar.fillfill color

labellabel of the axis

proplist, Compute cumulative proportion options

Matrix plot options

point.colorColor of point

point.emptyColor if set size is empty

point.sizeSize of the point

name.sizeSize of the name

grid.colorColor of the grid

line.sizeSize of the line connecting association

line.colorcolor of the line connecting association

set.labelsvector of labels of each set name or function(lab) to get set label from set name

order.freqreorder set list by frequency

See Also

Other upset: apply_binary_mask(), create_binary_groups(), create_binary_mask(), get_labels_from_binary()


cturbelin/ifnBase documentation built on Nov. 5, 2023, 12:54 p.m.