Extension of a graphical diagnostic test for contingency tables