pegasus.hvfplot
- pegasus.hvfplot(data, top_n=20, panel_size=(6, 4), return_fig=False, dpi=300.0)[source]
Generate highly variable feature plot. Only works for HVGs returned by
highly_variable_featuresmethod withflavor=='pegasus'.- Parameters
data (
MultimodalData,UnimodalData, oranndata.AnnDataobject.) – Single cell expression data.top_n (
int, optional, default:20) – Number of top highly variable features to show names.panel_size (
Tuple[float, float], optional, default:(6, 4)) – The size (width, height) in inches of figure.return_fig (
bool, optional, default:False) – Return aFigureobject ifTrue; returnNoneotherwise.dpi (
float, optional, default:300.0) – The resolution in dots per inch.
- Return type
Optional[Figure]- Returns
Figureobject – Amatplotlib.figure.Figureobject containing the dot plot ifreturn_fig == True
Examples
>>> pg.hvfplot(data) >>> pg.hvfplot(data, top_n=10, dpi=150)