dot-diagnostics_plot function

Internal function to plot the diagnostics plot