plots for logistic and poisson