write results to data.frame and plot