Plot PCA with trajaΒΆ

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

PCA
/home/docs/checkouts/readthedocs.org/user_builds/traja/checkouts/latest/docs/examples/plot_pca.py:10: FutureWarning: The error_bad_lines argument has been deprecated and will be removed in a future version.


  df = traja.dataset.example.jaguar()

<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.458 seconds)

Gallery generated by Sphinx-Gallery