See here for the example code that generated this page

Kernel Density Plot Examples

This page demonstrates kernel density estimation for visualizing continuous distributions.

Use multi-select dropdown controls to filter and explore the data!




Simple Kernel Density

Basic kernel density estimation for a normal distribution

Plot Attributes

Axes

value
0.6 (0.25 - 2.5)
auto (0 = auto, max ≈ 7.9)

Data: df1




Treatment Comparison - Overlapping Densities

Compare distributions with overlapping density curves. Transparency allows visibility of all groups.

Plot Attributes

Axes

value
0.6 (0.25 - 2.5)
auto (0 = auto, max ≈ 5.9)

Data: df2




Score Distribution by Department with Filters

Use age and region filters to filter data dynamically and see how distributions change

Filters

18 - 80

Plot Attributes

Axes

score
0.6 (0.25 - 2.5)
auto (0 = auto, max ≈ 11.4)

Data: df3




Faceted Kernel Density - Single Variable

Faceting by phase shows separate density plots for each phase, with categories overlaid within each facet

Plot Attributes

Axes

measurement

Facets

0.6 (0.25 - 2.5)
auto (0 = auto, max ≈ 7.9)

Data: df4




Faceted Grid - Two Variables

Two-way faceting creates a grid showing all combinations of treatment and timepoint

Plot Attributes

Axes

value

Facets

0.6 (0.25 - 2.5)
auto (0 = auto, max ≈ 9.2)

Data: df5




Bimodal Distribution Detection

Kernel density estimation excels at revealing complex distribution shapes like bimodality

Plot Attributes

Axes

value
0.6 (0.25 - 2.5)
auto (0 = auto, max ≈ 13.0)

Data: df6




Custom Bandwidth Setting

Bandwidth controls smoothness: smaller values show more detail, larger values create smoother curves

Plot Attributes

Axes

value
0.6 (0.25 - 2.5)
2.0 (0 = auto, max ≈ 3.9)

Data: df7




Multi-Variable KDE with Dropdowns and Bandwidth Control

Select different variables and grouping columns using the dropdowns. Adjust bandwidth to control smoothness. Set bandwidth to 0 for automatic calculation.

Plot Attributes

Axes

0.6 (0.25 - 2.5)
auto (0 = auto, max ≈ 39.2)

Data: df8




Comprehensive Example - All Features Combined

This example demonstrates all KernelDensity features together: multiple value columns, grouping by color, filtering with dropdown controls, and faceting. Use the controls to explore different combinations and see how distributions vary across departments, experience levels, and project types.

Filters

20 - 65

Plot Attributes

Axes

Facets

0.6 (0.25 - 2.5)
auto (0 = auto, max ≈ 13.1)

Data: df9




Key Features Summary

Tip: Kernel density plots are particularly useful for comparing continuous distributions and detecting complex patterns!


This page was created using JSPlots.jl v0.4.0.