See here for the example code that generated this page

3D Scatter Plot Examples

This page demonstrates 3D scatter plots in JSPlots with advanced interactive features.

Click and drag to rotate the 3D plots. Use scroll wheel to zoom!




Example 1: Basic 3D Scatter with Eigenvectors

A simple 3D scatter plot showing data points in three dimensions. The eigenvectors (PC1, PC2, PC3) show the principal components of the data, indicating the directions of maximum variance. Toggle them on/off to see how they align with your data.




Basic 3D Scatter with Eigenvectors

Red arrow = PC1 (most variance), Green = PC2, Blue = PC3

Plot Attributes


Data: df1




Example 2: Multiple Dimensions with Axis Selection

This example has 6 dimensions. Use the dropdown menus to choose which dimensions to display on each axis. This is perfect for exploring high-dimensional data from different perspectives!




6-Dimensional Data Explorer

Use the dropdowns to select which dimensions to visualize on each axis

Plot Attributes


Data: df2




Example 3: 3D Scatter with Filtering

Filter the data using dropdown filters to focus on specific subsets. The eigenvectors update dynamically to show the principal components of the filtered data!




3D Scatter with Filtering

Use the filters to filter by temperature and region - eigenvectors update with the data

Filters

15 - 35

Plot Attributes


Data: df3




Example 4: Clustering Visualization

Visualize clustering results in 3D. Each color represents a different cluster. The eigenvectors show the principal axes of variation across all clusters.




Clustering Visualization

Three distinct clusters - eigenvectors show overall data structure

Plot Attributes


Data: df4




Example 5: Time Series Visualization in 3D

Visualize temporal data in 3D space. Color represents different time periods or categories. This is useful for understanding how multivariate time series evolve in 3D space.




Time Series in 3D Space

A spiral trajectory through 3D space - filter by time to see different segments

Filters

0 - 31.42

Plot Attributes


Data: df5




Example 6: Faceting with Synchronized Camera

When using facets, the camera view is automatically synchronized across all plots. Rotating one plot rotates them all - perfect for comparing similar data across categories from the same perspective!




Faceted 3D Scatter with Synchronized Camera

Camera rotation is automatically synchronized across all faceted plots

Plot Attributes

Faceting


Data: df6




Example 7: Comprehensive Example

This example demonstrates all features together: multiple dimensions for axis selection, multiple color options, filtering by continuous and categorical variables, faceting, and eigenvector visualization. Try different combinations!




Comprehensive 3D Scatter Example

All features: dimension selection, color options, filtering, faceting, and eigenvectors

Filters

15 - 35
980 - 1029.5

Plot Attributes

Faceting


Data: df7




Key Features Summary

Tip: Hover over points to see exact coordinates! Eigenvectors are scaled for visibility.

Note: Eigenvector calculation uses a simplified power iteration method suitable for visualization purposes.


This page was created using JSPlots.jl.