working copy of mendelian error plot generation