stnmf.plot.autocorrelation
- stnmf.plot.autocorrelation(m, colors='#1b9e77', ax=None, **kwargs)
Plot the spatial autocorrelation of the modules
- Parameters:
m (
(r,)or(r,x,y) array_like) – Moran’s I of the spatial modules, or the modules themselves, where r is the number of modules x and y are the spatial dimensions. If modules, the autocorrelation is calculated using Moran’s Icolors (color,
iterable,matplotlib.colors.Colormap, optional) – Single color or color sequence for the data points to differentiate localized modules. If single color, the same color is used on the plots of all localized subunits. If iterable or colormap, colors are iterated over modules. Default is ‘#1b9e77’ax (
matplotlib.axes.Axes, optional) – Existing figure axes to draw the autocorrelation into. If None, a new figure is created. Default is None
- Keyword Arguments:
moransi_threshold (
float, optional) – Moran’s I threshold to differentiate localized modules. Default is 0.25