plotnine.geoms.annotate

class plotnine.geoms.annotate(geom, x=None, y=None, xmin=None, xmax=None, xend=None, ymin=None, ymax=None, yend=None, **kwargs)[source]

Create an annotation layer

Parameters
geomgeom or str

geom to use for annoation, or name of geom (e.g. 'point').

xfloat

Position

yfloat

Position

xminfloat

Position

yminfloat

Position

xmaxfloat

Position

ymaxfloat

Position

xendfloat

Position

yendfloat

Position

kwargsdict

Other aesthetics

Notes

The positioning aethetics x, y, xmin, ymin, xmax, ymax, xend and yend depend on which geom is used. You need to choose or ignore accordingly.

All geoms are created with stat='identity'.