class_docstr: Handle individual variable logic.
docstr: Get rhat data for the variable.
docstr_tok: ["Get","rhat","data","for","the","variable","."]
code: def r_hat(self):
      """Get rhat data for the variable."""
      _, y_vals, values, colors = self.labels_ticks_and_vals()
      for y, value, color in zip(y_vals, values, colors):
          if value.ndim != 2 or value.shape[0] < 2:
              yield y, None, color
          else:
              yield y, _rhat(value), color
  
imports: from collections import OrderedDict, defaultdict
  from itertools import tee
  import matplotlib.pyplot
  import numpy
  from matplotlib.colors import to_rgba
  from matplotlib.lines import Line2D
  from ....stats import hdi
  from ....stats.density_utils import get_bins, histogram, kde
  from ....stats.diagnostics import _ess, _rhat
  from ....sel_utils import xarray_var_iter
  from ....utils import conditional_jit
  from ...plot_utils import _scale_fig_size
  from .None import backend_kwarg_defaults, backend_show
label_desc: Use image node_id 7 for calling the VarHandler obj's underlying member method code with example usage: obj.r_hat() without return types