Plot PCA with trajaΒΆ

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

/home/docs/checkouts/ FutureWarning: The error_bad_lines argument has been deprecated and will be removed in a future version.

  df =

<Figure size 640x480 with 1 Axes>

import traja

# Load sample jaguar dataset with trajectories for 9 animals
df =

# 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