Plot PCA with traja

Plot PCA of a trip grid with traja.plotting.plot_pca()

PCA
<Figure size 640x480 with 1 Axes>

import traja

# Load sample jaguar dataset with trajectories for 9 animals
df = traja.dataset.example.jaguar()

# Bin trajectory into a trip grid then perform PCA
traja.plotting.plot_pca(df, id_col="ID", bins=(8,8))

Total running time of the script: (0 minutes 0.280 seconds)

Gallery generated by Sphinx-Gallery