troutpy.pl.moranI_histogram

troutpy.pl.moranI_histogram#

troutpy.pl.moranI_histogram(svg_df, save=True, figures_path='', bins=200, format='pdf')#

Plots the distribution of Moran’s I scores from a DataFrame.

Parameters:
  • svg_df (pandas.DataFrame) – DataFrame containing a column ‘I’ with Moran’s I scores.

  • save (bool) – Whether to save the plot as a file.

  • figures_path (str) – Path to save the figure. Only used if save=True.

  • bins (int) – Number of bins to use in the histogram.

  • format (str) – Format in which to save the figure (e.g., ‘pdf’, ‘png’).

Returns:

None