UpSet Plot Generator

Paste your gene lists, a 0/1 matrix or intersection counts and get an UpSet plot at once. Free SVG and PNG downloads, drawn in your browser with no code.

Short answer: paste one list per set, a 0/1 matrix or intersection counts, and this page draws the UpSet plot with intersection bars, a dot matrix and set sizes. Download SVG or PNG for free.

Specs and limits
InputOne column of element IDs per set, a 0/1 (or TRUE/FALSE) matrix, or lines such as SetA&SetB,12. Comma or tab separated.
Sets2 to 12 sets. Up to 100 intersections drawn.
CountingDistinct (exclusive) by default, or inclusive. Sort by size or by degree, with a minimum size filter.
OutputSVG with editable text, PNG at 2x, and a CSV of the intersections with their elements.
Price and privacyFree, no account. Parsing and drawing run in your browser and your data is not uploaded.
Does not doStatistical tests of overlap, genomic coordinate merging, or extra attribute plots beside the matrix.

Your data

First row: set names. Below each name, the element IDs in that set. Comma or tab separated, so you can paste straight from a spreadsheet.

The starting text is example data, not real results.

3 sets, 36 elements in at least one set.

Options

05Intersection size976543221Treatment ATreatment A20Treatment BTreatment B16Treatment CTreatment CSet sizeDistinct (exclusive) intersections: elements in exactly the marked sets.

Drawn in your browser. Nothing you paste is uploaded. The CSV lists every intersection that passes the minimum size, including any not drawn.

Need an illustrated overview of the study? Make a graphical abstract or a Venn diagram to go with this plot.

UpSet Plot Examples

Each plot is drawn by the same code as the tool above, from made-up example data. Free to view and download.

4 sets

Differential Genes in Four Treatments

Four sets and all 15 possible combinations. Example data.

1 / 5

What is an UpSet plot?

An UpSet plot is a chart of how several sets overlap. A matrix of dots shows which sets make up each combination: a filled dot means the set is part of it, a pale dot means it is not, and a line joins the filled dots. A bar above each column shows how many elements that combination has, and horizontal bars on the left show the total size of each set. The design was described by Lex and colleagues in 2014 in IEEE Transactions on Visualization and Computer Graphics, in the paper "UpSet: Visualization of Intersecting Sets".

When to use an UpSet plot instead of a Venn diagram

  • A Venn diagram works well for two or three sets. From about four sets on, it gets hard to read: the number of possible combinations is 2 to the power of the number of sets, minus 1, which is 15 for four sets and 63 for six.
  • An UpSet plot gives every combination its own column, so sizes are compared as bar heights and not as areas of odd shapes.
  • Typical uses are differential gene lists from several comparisons, peak regions from several marks or samples, variants from several callers, and combinations of conditions or features in patients.
  • If you have only two or three sets and want to show the overlap as shapes, a Venn diagram is often the simpler choice.

Distinct (exclusive) vs inclusive intersections

  • Distinct, also called exclusive: an element counts for A and B only if it is in A, in B and in no other set. Each element belongs to exactly one column, so all the columns together add up to the number of elements in at least one set. This is the default here, as in the UpSetR package.
  • Inclusive: an element counts for A and B if it is in both, whether or not it is also in other sets. The same element can count in several columns, so the bars do not add up to the total.
  • Example: a gene in A, B and C counts only in the A, B and C column under distinct counting. Under inclusive counting it also counts in A, B, C, A and B, A and C, and B and C.
  • In the Counts input, enter distinct counts. The tool does not accept inclusive counts as input; it works them out from the distinct ones.

How to read an UpSet plot

  • Start with a column: the filled dots name the sets, and the bar above gives the number of elements.
  • Check the set size bars on the left before comparing columns. A large set tends to take part in large intersections.
  • Sort by intersection size to find the most common combinations. Sort by degree, which is the number of sets in a combination, to see what is unique to one set and what is shared by many.
  • If the note under the plot says only some intersections are shown, the missing ones are smaller or come later in the sort order. The CSV copy lists all that pass the size filter.

How to write the figure legend

  • State what the elements and sets are, how each set was defined (for differential genes, the thresholds used), whether intersections are distinct or inclusive, how columns are sorted and whether any are left out.
  • Example: "Figure 1. UpSet plot of differentially expressed genes in four treatments. Bars show distinct intersections, sorted by size. Horizontal bars show the total number of genes per treatment."

Limits

  • Elements are matched by their exact text, including upper and lower case. Use one kind of identifier in all sets, and check for gene symbols that a spreadsheet has turned into dates.
  • For genomic intervals such as peaks, first merge them into a common list of regions with your analysis software. This tool compares IDs, not coordinates.
  • A large overlap is not by itself significant. Use a suitable statistical test if you want to claim that two sets overlap more than expected by chance.

Frequently Asked Questions