update models, generate plots in R