geosnap.visualize.indexplot_seq

geosnap.visualize.indexplot_seq(df_traj, clustering, years=['1970', '1980', '1990', '2000', '2010'], k=None, ncols=3, palette='Set1', save_fig=False, fig_suffix='LA')[source]

Function for index plot of neighborhood sequences within each cluster.

Examples

>>> import pandas as pd
>>> from geosnap.visualize import indexplot_seq
>>> import matplotlib.pyplot as plt
>>> df_LA = pd.read_csv("../../examples/data/LA_sequences.csv", converters={'GEO2010': lambda x: str(x)})
>>> indexplot_seq(df_LA, clustering="seqC1", palette="pastel", ncols=3)
>>> plt.show()

(Source code, png, hires.png, pdf)

../_images/geosnap-visualize-indexplot_seq-1.png