troutpy.pl.moranI_histogram#
- troutpy.pl.moranI_histogram(svg_df, save=True, figures_path='', bins=200, format='pdf')#
Plot the distribution of Moran’s I scores from a DataFrame.
- Parameters:
svg_df (
DataFrame) – DataFrame containing a column ‘I’ with Moran’s I scores.save (
bool(default:True)) – Whether to save the plot as a file.figures_path (
str(default:'')) – Path to save the figure. Only used ifsave=True.bins (
int(default:200)) – Number of bins to use in the histogram.format (
str(default:'pdf')) – Format in which to save the figure (e.g., ‘pdf’, ‘png’).
- Return type:
- Returns:
None