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.fill

fill color

label

label of the axis

prop

list, Compute cumulative proportion options

Matrix plot options

point.color

Color of point

point.empty

Color if set size is empty

point.size

Size of the point

name.size

Size of the name

grid.color

Color of the grid

line.size

Size of the line connecting association

line.color

color of the line connecting association

set.labels

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

order.freq

reorder 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 July 4, 2025, 6:23 p.m.