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_features
method withflavor=='pegasus'
.- Parameters
data (
MultimodalData
,UnimodalData
, oranndata.AnnData
object.) – 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 aFigure
object ifTrue
; returnNone
otherwise.dpi (
float
, optional, default:300.0
) – The resolution in dots per inch.
- Returns
A
matplotlib.figure.Figure
object containing the dot plot ifreturn_fig == True
- Return type
Figure
object
Examples
>>> pg.hvfplot(data) >>> pg.hvfplot(data, top_n=10, dpi=150)