voyagerpy.plotting.plot_dim_loadings#
- voyagerpy.plotting.plot_dim_loadings(adata: AnnData, components: int | Sequence[int], ncol: int = 2, n_loadings: int = 10, show_symbol: bool = True, varm: str = 'PCs', **kwargs) ndarray[Any, dtype[Axes]]#
Plot the loadings of a dimensionality reduction method.
Each component is plotted on a separate axis. The top and bottom
n_loadings/2are shown for each component.- Parameters:
adata (AnnData) – The annotated data matrix.
components (Union[int, Sequence[int]]) – The components to plot. If int, plot the first
componentscomponents. If Sequence[int], plot the components in the sequence.ncol (int, optional) – The number of columns in the axes grid, by default 2
n_loadings (int, optional) – The number of loadings to show for each component, by default 10
show_symbol (bool, optional) – Whether to show the gene symbol, by default True
varm (str, optional) – The key in
adata.varmto use for the loadings, by default “PCs”.**kwargs – Currently used for configuring the subplots. The keys used are
figsize,sharex, andlayout.
- Returns:
_description_
- Return type:
npt.NDArray[Axes]