class_docstr: Create an annotation layer
  
  Parameters
  ----------
  geom :
      geom to use for annotation, or name of geom (e.g. 'point').
  x :
      Position
  y :
      Position
  xmin :
      Position
  ymin :
      Position
  xmax :
      Position
  ymax :
      Position
  xend :
      Position
  yend :
      Position
  xintercept :
      Position
  yintercept :
      Position
  kwargs :
      Other aesthetics or parameters to the geom.
  
  Notes
  -----
  The positioning aethetics `x, y, xmin, ymin, xmax, ymax, xend, yend,
  xintercept, yintercept` depend on which `geom` is used.
  
  You should choose or ignore accordingly.
  
  All `geoms` are created with :code:`stat='identity'`.
class_docstr_tok: ["Create","an","annotation","layer","Parameters","--","--","--","--","--","geom",":","geom","to","use","for","annotation",",","or","name","of","geom","(","e.g",".","'point","'",")",".","x",":","Position","y",":","Position","xmin",":","Position","ymin",":","Position","xmax",":","Position","ymax",":","Position","xend",":","Position","yend",":","Position","xintercept",":","Position","yintercept",":","Position","kwargs",":","Other","aesthetics","or","parameters","to","the","geom",".","Notes","--","--","-","The","positioning","aethetics","`","x",",","y",",","xmin",",","ymin",",","xmax",",","ymax",",","xend",",","yend",",","xintercept",",","yintercept","`","depend","on","which","`","geom","`","is","used",".","You","should","choose","or","ignore","accordingly",".","All","`","geoms","`","are","created","with",":","code",":","`","stat='identity","'","`","."]
docstr: Make a layer that represents this annotation
  
  Returns
  -------
  out : layer
      Layer
docstr_tok: ["Make","a","layer","that","represents","this","annotation","Returns","--","--","--","-","out",":","layer","Layer"]
code: def to_layer(self) -> Layer:
      """
      Make a layer that represents this annotation
  
      Returns
      -------
      out : layer
          Layer
      """
      return self._annotation_geom.to_layer()
  
file_path: plotnine/plotnine/geoms/annotate.py
imports: from __future__ import annotations
  import typing
  import pandas
  from .._utils import is_scalar
  from .._utils.registry import Registry
  from ..exceptions import PlotnineError
  from ..geoms.geom import geom
  from ..mapping import aes
  from ..mapping.aes import POSITION_AESTHETICS
label_desc: Use image node_id 3 for calling the annotate obj's underlying member method code with example usage: obj.to_layer() and returns: self