def replaceElement(self, element, widget):
        DOM.getParent(element).replaceChild(widget.getElement(), element)
        self.adopt(widget, None)
        self.children.append(widget)
Interaction plot for factor level statistics.
dataset/ETHPy150Open anandology/pyjamas/addons/TemplatePanel.py/TemplatePanel.replaceElement--crossover with--dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/graphics/factorplots.py/interaction_plot