class_docstr: Rectangles specified using a center points
  
  {usage}
  
  Parameters
  ----------
  {common_parameters}
  
  See Also
  --------
  plotnine.geoms.geom_rect
code: def setup_data(self, data: pd.DataFrame) -> pd.DataFrame:
      try:
          width = data.pop("width")
      except KeyError:
          width = resolution(data["x"], False)
  
      try:
          height = data.pop("height")
      except KeyError:
          height = resolution(data["y"], False)
  
      data["xmin"] = data["x"] - width / 2
      data["xmax"] = data["x"] + width / 2
      data["ymin"] = data["y"] - height / 2
      data["ymax"] = data["y"] + height / 2
      return data
  
imports: from __future__ import annotations
  import typing
  from .._utils import resolution
  from ..doctools import document
  from .geom_rect import geom_rect
label_desc: Use image node_id 1 for calling the geom_tile obj's underlying member method code with example usage: obj.setup_data(data) and returns: data