Marginal Density Scatter Plot Generator
Use Marginal Density Scatter Plot Generator
All GotoKit tools run directly online, no download required.
Upload a CSV to build a journal-style two-group marginal scatter: a square main panel with density curves along the top and right edges, one regression line and confidence band per group, and opposing stat boxes in the corners. Light / dark canvas with PNG / SVG export.
About this tool
One figure answers three questions at once: what shape each group has, how the two variables relate, and how trustworthy that relationship is. The main panel is a square scatter, with a density curve attached along the top and another along the right, so readers never have to look at a histogram and then hunt back for the matching dots. Each group gets a fitted regression line wrapped in a pale confidence band — narrow means a stable estimate, wide means a thin sample. Two cream stat boxes sit on opposite corners and print the equation, R², p value and RMSE / MAE, saving you from restating the numbers in the text.
- Export crisp PNG / SVG you can keep editing
- Multiple built-in themes, one-click switch
- Light and dark canvas support
- Free, no watermark, no limits
Compared with general charting workflows
| Aspect | This tool | Typical alternative |
|---|---|---|
| Visual direction | Optimized for a specific chart grammar | More general, but more setup |
| Export | Fast PNG/SVG export first | More formats, but heavier workflow |
| Best fit | Slides, landing pages, and social visuals | Building bespoke analytical charts from scratch |
Docs
What is a marginal density scatter plot?
A marginal density scatter plot — also called a marginal plot — combines a scatter with the distribution of each variable. The main panel holds the points, a kernel density curve runs along the top edge, another runs down the right edge, and all three share the same coordinate ranges. You read the points, the distributions and the trend on one piece of canvas instead of comparing two separate figures.
It is the layout you see most often in journal figures and data journalism: a square scatter with distributions attached to the axes. Compared with placing a scatter and a histogram side by side, the marginal version puts each distribution next to the axis it belongs to, so readers never have to map a bar back onto a tick.
This tool fixes the layout into a template: one three-column CSV and it produces the closed frame, both density curves, a regression line per group, confidence bands and two stat boxes.
Style features
- Three-panel composition: a square main panel, a horizontal density panel above it with exactly the same width, and a vertical density panel to the right with exactly the same height.
- Closed four-sided frame: solid dark lines on every side — left and bottom from the axes, top and right from dedicated lines — so the plot reads as one framed block.
- Inward ticks everywhere, numbers only on two sides: all four edges carry short ticks pointing into the plot, but only the left and bottom axes print values, keeping the top and right edges as pure alignment references.
- Bidirectional marginal densities: smooth Gaussian kernel curves over 40% same-colour fills; where the two groups overlap the fills blend naturally. Neither density axis shows ticks or a title.
- Warm and cool two-colour pairing: the Day group uses coral
#E76F51, the Night group teal#64C7C9; points, regression line, density curve and fill all draw from the same family. - Regression line above the points: one deeper-family 2.5px line per group, extended to the panel edges so the slope direction reads immediately.
- Confidence band beneath the points: a narrow ±1.96 standard-error ribbon wraps each line, sitting below every dot so it signals precision without hiding density.
- Opposing stat boxes: two cream
#F2EFD9rounded boxes sit top-left and bottom-right; the first is left-aligned, the second right-aligned, and each prints the group name, equation, R² with p value, and RMSE with MAE in a serif face with a bold first line. - No legend at all: group identity comes from the stat box headings, so no colour keys intrude on the plot.
Features
- Template driven, no code: three columns of CSV, header auto-detected, up to 600 rows.
- Statistics computed live: least-squares fit, R², a two-tailed p value from a t test on the slope, RMSE and MAE update the moment your data changes.
- Equal-scale axes: X and Y share one range with an automatically chosen integer step, so awkward ticks such as 2.5 or 7.5 never appear.
- Responsive canvas: narrow screens shrink fonts, point diameter and density panel width, and re-measure the stat boxes so no text overflows.
- Light and dark modes: pure white or
#0F172A, with frames, text, points, density fills and box backgrounds all switching together. - High-resolution export: 2x PNG carrying the current background, plus a true vector SVG ready for PowerPoint, Illustrator or print.
- Local processing: the CSV never leaves the browser, so unpublished data is safe.
Data format
The CSV needs three columns; the header row is optional:
| Field | Meaning |
|---|---|
| x | Horizontal value, must be numeric |
| y | Vertical value, must be numeric |
| group | Group name, drives colour, regression grouping and stat boxes |
The built-in template ships 360 sample rows split into Day and Night, so the page opens with two full clouds and two fitted lines. Row order does not matter. Two groups is the intended setup: stat boxes fill the opposite corners, and only the first two groups get a box.
How to use
- Click “Download CSV template” and open it in Excel or a text editor.
- Replace the rows, keeping the
x,y,grouporder. - Upload the file, or click “Load sample” first to see the default layout.
- Toggle “Canvas style” for a dark version when presenting.
- Download PNG or SVG for papers, reports or slides.
Where it fits
It suits any two-group comparison of two continuous variables: dose-response for a treatment and a control, daytime versus nighttime traffic metrics, two materials measured on temperature and strength, spend versus session length for two user segments, or yield versus quality for two processing methods.
If you only need the relationship and not the distributions, a plain scatter is lighter. With more than three groups, use small multiples instead, otherwise the density fills cover one another. And when exact values matter more than shape, a bar chart is still clearer.
About Gotokit
Gotokit offers chart tools with no sign-up. This tool renders with ECharts, computes everything locally in your browser, and exports watermark-free images for academic and commercial use.
FAQ
What are the marginal density curves for, and how do they differ from histograms?
A scatter shows the joint relationship but hides how each variable is distributed on its own. Attaching kernel density curves to the top and right edges places a horizontal and a vertical distribution beside the same axes, so readers never flip between pages. Curves are smoother than bars and do not change silhouette when you tweak bin counts, which makes overlaying two groups far less ambiguous.
What does a narrow confidence band mean?
The narrower the band, the more stable the fitted line is — a fresh sample would not move it much. Its width comes from the residual standard deviation, the sample size and how far each x sits from the mean, which is why the ends usually flare and the middle stays tight. A band that is wide everywhere means noisy data or too few points, so treat R² and the slope with caution.
How are the numbers in the stat boxes computed?
Each group is fitted by ordinary least squares to get slope a and intercept b. R² comes from the residual sum of squares divided by the total sum of squares. The p value is the two-tailed probability from a t test on the slope, evaluated through the incomplete beta function and shown as p < 0.001 when smaller. RMSE is the square root of the mean squared residual, MAE the mean absolute residual. Everything runs locally in your browser.
Is this chart tool better for slides, reports, or social visuals?
All three can work, but each needs a different emphasis. Slides care about legibility, reports care about structure and annotation, and social visuals care about density and style. Tune colors, labels, and export size for the destination.
When should I export PNG instead of SVG?
PNG is usually better for slides, chats, or social sharing, while SVG is better if you need to keep editing, scale for print, or embed the graphic in a design system. If the target platform does not support SVG, export a higher-resolution PNG.
How is this different from a general charting tool?
These tools are optimized for a specific visual grammar, so you can get to a strong result faster. General charting tools are more flexible across many chart families, but usually take more setup and styling work.
Can I use this tool on mobile phones or tablets?
Most tools work in modern mobile browsers, but complex charts, larger files, and precision drag-and-drop tasks usually feel better on desktop. If speed and control matter, desktop is the safer choice.
Is this tool better for one-off tasks or recurring workflows?
It is strongest for fast one-off tasks, quick verification, and temporary exports. If you need long-term automation, team collaboration, or deeper integration, you will usually pair it with desktop software, scripts, or a larger system.
More from Design
All Design toolsCircular Evidence Network Plot Generator
Generate a circular evidence network from independently entered patient totals and pairwise study counts in CSV. Node area shows patients and curve width shows studies, with local processing, light/dark mode and PNG/SVG export. No statistical analysis.
Pantone Color Picker
Pick any color and find the nearest Pantone reference instantly, with ready-to-copy HEX and RGB values for design and print workflows.
Color Wheel Studio
Explore colors with an interactive wheel, fine-tune HEX, RGB, HSL, and HSV values, and save palettes directly in your browser.
Color Scheme Generator
Generate color schemes from a base color using 7 harmony rules with live UI preview and export to HEX, Tailwind, or CSS variables.
Pantone + CMYK + RGB Print Palette
Professional print palette with 150+ Pantone swatches, 2-5 color combos, auto Pantone matching, real-time CMYK, and simulated coated-paper preview.
Gradient Art Generator
Create layered radial-gradient artwork with blend modes, random presets, and copy-ready CSS for modern backgrounds and hero sections.
Chord Diagram Generator - Free Online Circular Chart Maker
Read pair-wise relationships with a circular chord diagram: nodes ring the circle, arc length shows each node’s total flow, and ribbon width plus color encodes how strongly any two nodes connect. Made for migration, trade, calls or citations, with three color themes and PNG / SVG export.
Elegant Date Ring Bubble Chart
Map a full year of events onto a concentric date ring — months on the outer circle and days aligned inward — so each event floats as a soft gradient bubble over its own calendar cell. Sparse days and crowded holidays reveal themselves instantly in a refined, low-saturation palette with light / dark canvas and PNG / SVG export.
Dual Gradient No. 1 Nightingale Rose Chart
A Nightingale rose whose petals sweep outward in a symmetric ring, each one brushed with a two-tone gradient instead of a flat color. An optional year label sits at the center of the chart, and light / dark canvas styles come with PNG / SVG export.
Poster Two-Column Sankey Diagram Generator
A poster-grade two-column Sankey: left-side nodes take vivid colors while right-side nodes are shaded in weight-based grays, and every flow band carries its own name, value and share. The clean two-column layout is ready to drop into a poster, with light / dark canvas styles and PNG / SVG export.
Streamgraph Generator - Free Online River Chart Maker
A smooth streamgraph where every series stacks symmetrically around a baseline that sways with time, the stacked shapes undulating like shifting river channels. Ideal for comparing how the parts of a whole change together over the years; supports 2 to 16 series and 3 to 40 rows, with light / dark canvas and PNG / SVG export.
Morandi Streamgraph Generator - Free Online River Chart Maker
A streamgraph dressed in a Morandi blue-to-pink palette: low-saturation navy, blue-gray and dusty rose keep the layered river calm and easy on the eye, thin white seams separate every layer, and a top legend keys colors to series. For stacked trend views that still feel refined, with light / dark canvas and PNG / SVG export.
Error Band Chart Generator - Free Online Confidence Band Maker
A continuous error band chart: instead of a fixed shadow under the main line, a band hugs the line and changes width point by point, swelling in volatile periods and thinning in calm ones, so trend and uncertainty live in one frame. Classic off-white, rainbow and Morandi themes with light / dark canvas and PNG / SVG export.
Line Bubble Chart Generator - Free Online Log-Scale Bubble Chart Maker
A curved-stem bubble chart for timelines: each event sits on a year axis, a thin stem bows rightward off the bottom spine and lifts a translucent bubble, and a logarithmic Y axis keeps values across orders of magnitude (0.7 to 14) comparable in one frame while bubble size maps by square root. Five category colors, light / dark canvas and PNG / SVG export.
Morph Bubble Zoning Diagram Generator - Free Online Organic Bubble Diagram Maker
A Morph Bubble Zoning Diagram where child nodes fuse into their hub with Metaball surfaces instead of floating detached, labels run along each node’s outer arc, dashed links connect the bubbles, and a teal-to-green four-color palette keeps the cluster calm. Made for hub-and-member structures; light / dark canvas and PNG / SVG export included.
Scallop Chord Diagram Generator - Free Online Bipartite Chord Diagram Maker
A scallop-shaped bipartite chord diagram: group arcs along the bottom are weighted by total flow into unequal scallops, target nodes fan across the top in equal-width arcs, and the flows between them become thin ribbons bending along center-crossing Bézier curves, with radial labels that never tangle. Built for few-groups-to-many-targets bipartite data; light / dark canvas and PNG / SVG export.
Annotated Heatmap Generator - Free Online Table Heatmap Maker
A table heatmap that keeps the numbers legible: every cell is both color-filled and labeled with its value, a diverging scale stretches from zero toward positive and negative extremes, and a vertical ticked color bar sits on the right. Themes for classic, rainbow and Morandi looks, light / dark canvas, PNG / SVG export.
Grouped Bar Chart with Error Bars Generator - Free Online Chart Maker
A grouped bar chart with error bars in the restrained academic style: two pastel-colored bars side by side, black I-shaped error bars on top, a full black axis frame and x labels rotated 45 degrees — a faithful reproduction of a paper-ready figure. Built for experimental group comparisons, with light / dark canvas and PNG / SVG export.
Ridgeline Plot Generator - Free Online Joy Plot Chart Maker
A ridgeline (joy) plot that stacks several distributions along their own horizontal baselines, peaks rising smooth and never overlapping, with a series name on the left of each row and a dot legend beneath — ideal for comparing the peaks and spread of many groups side by side. Up to 6 series and 400 rows, with light / dark canvas and PNG / SVG export.
Radial Stacked Bar Chart Generator - Free Online Circular Bar Plot Maker
A radial stacked bar chart (racetrack / circular bar plot) where each row of data becomes one concentric ring, split into stacked category arcs whose lengths stay proportional to the ring total — like laps of a track labelling each year’s composition. An italic total sits just beyond every arc end and a vertical square-marker legend keys the colors; light / dark canvas and PNG / SVG export included.
Curved Fan Story Sankey Diagram Generator
Recreate the reference style with fan-shaped sources, slanted event bars and curved character arcs. Map influence to ribbon width and export CSV-driven PNG or SVG charts.
Log-Scale Bubble Scatter Chart Generator
Upload a CSV to build a dual log-axis bubble scatter: bubble area encodes a third variable, colors follow your groups, and a dashed y=x line with R² / P / n annotations is added automatically. PNG and SVG export included.
Vinyl Groove Radial Bubble Scatter Chart Generator
Upload a CSV to build a vinyl-groove radial bubble scatter: each group owns a wedge, points sweep clockwise into concentric grooves, bubble area carries a third number, colour fades from core to rim, and capsule buttons isolate one group.
Rainbow Gradient Scatter Plot Generator
Upload a CSV to build a ggplot2-style rainbow scatter: points coloured along a continuous purple-blue-green-yellow-red gradient by a third variable, a grey panel with white gridlines, an automatic LOESS smooth curve with confidence band, and a vertical colour bar legend.
Bubble Swarm Chart Generator
Upload a CSV to build a single-axis bubble swarm: one scale along the top edge, horizontal position for the value, bubble area for scale, circles that repel each other so none overlap, and uppercase labels with thin curved leaders.
Diverging Density Bubble Chart Generator
Upload a CSV to build a newspaper-style diverging density bubble chart: a log axis tames the long tail, bubble area encodes scale, and one diverging metric drives both colour and vertical position, with a 12-step colour bar, nested-circle size legend and median reference line.
Annotated Callout Bubble Chart Generator
Upload a CSV to build a newspaper-style bubble scatter with curved leader-line callouts: bubble area encodes scale, colours mark regions, labels auto-avoid overlap, and one annotation arrow states the takeaway. Light / dark canvas with PNG and SVG export.
Five-Stage Pastel Gradient Sankey Diagram Generator
A five-stage Sankey that renders source → transit → hub → channel → destination in one chart. Every node takes its own pastel color, ribbons blend a source-to-target gradient at low opacity, and slim nodes carry white pill labels on the inner columns. Three soft palettes, light / dark canvas and PNG / SVG export.
Dual-Tone Budget Flow Sankey Diagram Generator
A standard left-to-right layered dual-tone budget Sankey built on the ECharts sankey layout: the revenue side converges in cyan from the left, passes through the central pivot bar that fades from cyan to magenta, and the expenditure side then diverges to the right in magenta. Within each family, nodes are ranked by throughput across seven shades of light and dark — darker and thicker means larger, while pale slivers that thin to a line are the smallest items. Labels are tiered by column with automatic collision avoidance. Three dual-tone palettes, light / dark canvas and PNG / SVG export.
Energy Flow Sankey Diagram Generator
A free-depth energy flow Sankey that renders energy sources → conversion carriers → end uses in one chart, in UK DECC style. Every node takes an earthy multi-hue color, ribbons blend a source-to-target gradient at ~0.2 low opacity, and all node labels sit to the right of their bars with no background. Three palettes, light / dark canvas and PNG / SVG export.
Metabolite–Pathway Enrichment Sankey Generator
Render a two-column metabolite → pathway enrichment Sankey plus a matching right bubble panel in one chart. Ribbons use one flat light-gray tone at ~0.6 opacity so overlaps darken; every label sits to the left of its bar, right-aligned and vertically centered with no pill; ~50 pastel metabolites feed 11 gem-toned pathways; the bubble panel aligns row-by-row, x = -Log(Pvalue), area = Count, red shade = Hit Ratio. Light / dark canvas and PNG / SVG export.
Four-Stage Decision Sankey Diagram Generator
A four-column Sankey that renders the whole funnel at once — origin, destination, decision, then breakdown by origin. Volume layers in from the left, the right side splits it into accepted-versus-rejected comparison bars per source, and a year badge plus three palettes complete the academic poster look for review, approval or admission flows.
Three-Column Influence Sankey Diagram Generator
Chain situation type → scene → character into one influence-flow diagram: ribbon width is the value itself, so the thicker the scene the bigger its pull on the outcome. Right-column nodes inherit the colour of their largest source category, and the bottom legend reads your own CSV node names — swap in your data and the whole chart re-skins instantly. Includes in-chart title and caption, light / dark canvas and PNG / SVG export.
Triangular Distribution Matrix Heatmap Generator
Lay out a frequency matrix — how many days each category spends in every value bin — as a stepped triangular heatmap. Cell color encodes frequency while IQR ranges, median dots and mean crosses are drawn automatically, revealing skew and spread at a glance. Three palettes, light / dark canvas and PNG / SVG export.
Circos Gradient Ribbon Chord Diagram Generator
A Circos-style chord diagram split into warm and cold camps: warm nodes and cold nodes each form a continuous arc, and the link between them becomes a ribbon that gradients from one end’s color to the other’s. Whole-camp flows are legible at a glance for matrices such as genomics, networks or ecology; dark mode and PNG / SVG export included.
Bubble Chord Diagram Generator - Circular Collaboration Network
A bubble chord diagram places paired relationships around one big circle: each node is a bubble whose size shows the node scale and whose fill walks an aqua-to-blue colormap for strength; links bow toward the center with thickness proportional to the flow value, while node names radiate outside the ring. Built for collaboration networks, supply-chain dependencies and inter-team flows where each node also carries metrics, still legible around 30 nodes; dark mode and PNG / SVG export.
Radial Arc Flow Diagram Generator
A radial arc flow diagram for country-to-organization flows: a top arch is segmented by region with country ticks along the arc, and curves stream down from each tick into organization nodes sized by total volume. Built for global trade, aid or migration narratives, with dark mode and PNG / SVG export.
Two-Tone Ring Chord Diagram Generator - Bipartite Flow Chart
A two-tone ring chord diagram for bipartite source-to-target flows: a slate top half-ring holds sources and a pink bottom half-ring holds targets, each node an arc sector weighted by its total flow; bezier curves cross the open center toward arrowheads on the target side. Built for threat modeling, capability mapping and requirements traceability; dark mode and PNG / SVG export.
Double Fan Colorful Chord Diagram Generator
A double-fan colorful chord diagram turns bipartite flows into an hourglass: five solid-colored arcs fan across the top and five pastel arcs fan across the bottom along one circle, with open gaps at 3 and 9 o’clock. Translucent colored ribbons cross the center waist, and every sector carries its own tick axis starting at 0 with majors every 10 units. Built for channel flows, cost allocation and requirement coverage; dark mode and PNG / SVG export.
Circos Collinearity Chord Diagram
A Circos collinearity chord diagram treats ring segments as continuous coordinate tracks instead of discrete nodes: outer ticks show positions and thin curves in the center map one interval to another. Built for genome synteny, block migration, address-range remapping, batch reassignment and stratigraphic comparison, with light/dark mode and PNG / SVG export.
Group Flow Chord Diagram Generator
Draws “many sources into a few groups” as one ring: the left half holds small source arcs in a single purple, the right half holds group arcs one colour each with a matching vertical legend, arc width equals node totals, and ribbons are tinted by their target group. White dividers inside group arcs show at a glance how many sources feed each one. Built for sample classification, channel attribution, topic assignment and batch destinations, with dark mode and PNG / SVG export.
Spectral Ring Chord Diagram Generator
Turns a pairwise relationship matrix into a spectral ring: nodes run clockwise from the largest total to the smallest, arc colors are sampled along one continuous ramp so hue is the ranking itself (reddest biggest, bluest smallest), every relationship is a uniform thin teal line bending toward the centre, and white dividers inside an arc are that node’s connection list. Dark mode and PNG / SVG export included.
Arc Diagram Generator
A classic arc diagram that flattens co-occurrence onto one baseline: colored group ticks sit on the line, vertical group-colored labels stand at the left, and relationship strength is drawn as semi-transparent semicircle arcs whose height and thickness vary with the weight — clean even at 400 relations. Great for timelines and ranked pairings; dark mode and PNG / SVG export.
Grouped-Color Rose Chart Generator
Turn category, value and group columns into a Nightingale rose where every petal takes the color of its group, hues flowing smoothly from one segment to the next. Includes a label toggle, light / dark canvas styles and PNG / SVG export, all rendered locally.
Excalidraw Whiteboard
Use a hand-drawn online whiteboard for flowcharts, sketches, wireframes, and annotations with local editing and export.