See here for the example code that generated this page

ScatterSurface3D Examples

This page demonstrates 3D scatter plots with fitted surfaces in JSPlots.




Example 1: Basic 3D Scatter with Fitted Surfaces

This example shows 3D scatter points with automatically fitted surfaces using kernel smoothing.

Features:




3D Scatter with Auto-Fitted Surfaces

Use controls to toggle display and adjust smoothing. Default smoothing varies by group.

Plot Attributes

Defaults

Groups (click to toggle visibility)

1.0 (0.25 - 2.5)

Data: data




Example 2: Custom Surface Fitting Function

This example demonstrates using a custom surface fitting function.

The custom fitter uses a simple moving average approach with adjustable bandwidth.




Custom Surface Fitter Example

Custom smoothing function with adjustable bandwidth parameter

Plot Attributes

Defaults

Groups (click to toggle visibility)

1.0 (0.25 - 2.5)

Data: data_subset




Example 3: Financial Data with Multiple Grouping Schemes

This example demonstrates stock returns analysis with switchable grouping schemes.

Dataset: 150 synthetic stocks with financial metrics

Grouping Schemes: Use the dropdown to switch between different groupings:

Key Insights:




Stock Returns - Switchable Grouping

Use the grouping scheme dropdown to switch between Industry and Country groupings. Colors and surfaces update automatically.

Plot Attributes

Defaults

Groups (click to toggle visibility)

1.0 (0.25 - 2.5)

Data: finance_data




Summary

ScatterSurface3D combines 3D scatter plots with fitted surfaces:

Key Features

Use Cases

Controls Guide:


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