Lollipop Plot Generator
Paste ranked results or protein variants and get a publication-ready lollipop plot at once. Add a threshold, domain blocks and consequence colours, then download SVG or PNG.
Short answer: paste ranked labels and values, or protein variants with positions and counts, and this page draws a lollipop plot with stems, dots, domains and a legend. Download SVG or PNG for free.
Specs and limits
| Ranked input | CSV or TSV with label,value plus optional size and group columns. A header row is optional and named columns may be in any order. Up to 80 items. |
|---|---|
| Mutation input | position,label,count,type rows, with optional @length, @protein and @domain header lines. Up to 120 variants and 12 domains. |
| Ranked options | Horizontal or vertical stems, sort by value or input order, baseline at zero, the smallest value or a custom number, and a dashed threshold line. |
| Mutation options | Protein length, domain blocks with optional colours, consequence legend and up to 120 labelled hotspots. Labels are staggered to avoid overlap. |
| Output | SVG with editable text, PNG at 2x, and a CSV of the plotted rows with their values, sizes, groups or consequence types. |
| Price and privacy | Free, no account. Parsing and drawing run in your browser and your data is not uploaded. |
Your data
One row per item: label, value, optional size and optional group. Comma or tab separated; a header row is optional.
The starting text is example data, not real results.
Options
Drawn in your browser. Nothing you paste is uploaded. Long labels widen the canvas instead of being cut off.
Want to show the comparison behind the dots? Add a volcano plot or an UpSet plot beside this figure.
Lollipop Plot Examples
Each plot is drawn by the same code as the tool above, from made-up example data. Free to view and download.
Pathway Enrichment
Ranked −log10(FDR) values with gene counts and a cut-off. Example data.
What is a lollipop plot?
A lollipop plot shows one value per category as a stem with a dot on top. It works like a bar chart with very thin bars: the dot marks the value, the stem ties it to a baseline, and the space between categories stays open, so labels and dot sizes are easy to read. The same shape has two common uses in biomedical research: ranked results such as pathway enrichment, differential expression or feature importance, and protein mutation maps, where the horizontal axis is the amino acid sequence and each dot is a variant.
Ranked and enrichment mode
- Each row is one category with a number: a pathway and its −log10(FDR), a gene and its log2 fold change, or a predictor and its mean absolute SHAP value.
- An optional size column scales the dots, for example the number of genes in a pathway. An optional group column colours the dots and adds a legend.
- Horizontal stems are the default because pathway and gene names are long. The left margin is measured from the text, so a long name widens the canvas instead of being cut off.
- A dashed threshold line marks a cut-off such as FDR 0.05, which is 1.3 on a −log10 scale. Values to the right of the line pass the cut-off when the axis points right.
- For log2 fold changes, keep the baseline at zero. The tool colours positive and negative values differently and adds a two-item legend, so upregulated and downregulated genes are separated at a glance.
Protein mutation mode
- The backbone is the protein sequence drawn to scale, from residue 1 to the stated length. Tick marks give the amino acid position.
- Domains are coloured blocks placed over the backbone. Give each one as name:start-end, with an optional hex colour, either in a @domain header line or in the separate domains box.
- Each variant is a vertical stem from the backbone to a dot. The dot is coloured by consequence: missense, nonsense, frameshift, splice, inframe or other. Dot size grows with the mutation count.
- Hotspot labels are placed in rows above the dots and shifted sideways when they would collide with the canvas edge. When there are more variants than the label limit, the most frequent ones are labelled and a note says so.
- This is the layout used by cBioPortal mutation diagrams and by lollipop plots in cancer genomics papers. It is a schematic: the domains and positions are drawn to scale, but the vertical stem height encodes frequency, not a physical distance.
How to read the two modes
- Ranked: compare dot positions along the value axis, not the area of the dots. Read the axis title to know what the number means and check whether the baseline is zero or the smallest value.
- Ranked: if dot sizes are used, read the tooltip or the CSV to recover the exact size. A larger dot means a larger size value, but the area is not labelled unless you add value labels.
- Mutation: start with the domain blocks to see which part of the protein a hotspot falls in, then read the consequence colour and the count.
- Mutation: a tall stem means a frequent variant in the sample set, not a strong effect on protein function. Functional impact needs a separate annotation source.
How to write the figure legend
- State what the categories and values are, how the values were calculated, what the dot size means, and what the dashed line is.
- Example: "Figure 1. Lollipop plot of Reactome pathways enriched in proliferating cells. Dot position shows −log10(FDR); dot size shows the number of genes in the pathway. The dashed line marks FDR = 0.05."
- For a mutation map, give the transcript or protein identifier, the amino acid length, the domain source, the variant caller or cohort, and the meaning of the colours and dot sizes.
- Example: "Figure 2. Somatic TP53 variants in 120 tumours. Domains are from Pfam; dot colour shows consequence and dot size shows the number of samples with that variant."
Limits
- The tool draws what you paste. It does not run enrichment analysis, call variants, annotate consequences or map transcripts to protein coordinates.
- Mutation positions use one protein sequence. If your variants are given on a transcript with a different numbering, convert them first.
- A large dot or a tall stem is not evidence of statistical significance. Use the appropriate test and report it separately.
- Labels are placed to avoid overlap, but very dense hotspot regions may still need a shorter label, a higher label limit, or a smaller set of variants.


