<p>If it answers a particular question it is ok (you can even make your own question and answer it yourself if you would like). Just note here isn't the place for code review: any question needs to have some relation to stats outside of programming, as explained in the <a href="https://stats.stackexchange.com/faq">FAQ</a>.</p>

<p>ps - You may want to check the <a href="https://stats.stackexchange.com/a/45099/1036">references on this answer</a>. Their visual diagnostics are very similar in nature to what you are proposing.</p>
